PHP: Miscellaneous
Modern Tooling
Unit testing PHP?
Quickly Perform PHP Unit Testing With PHPUnit
Interesting PHP libraries
- UserFrosting
Modern user management framework for PHP
Optimize images
- spatie/image-optimizer
can optimize PNG,JPG,SVG,GIF and WebP by running them through a chain of various image optimization tools. Not sure if it can convert or resize images.
Browser screenshots
- spatie/browsershot
Convert html to an image, pdf or string
Easily convert webpages to images using PHP
Crawlers
spatie/crawler
spatie/crawler: An easy to use, powerful crawler implemented in PHP. Can execute Javascript.
By default, the crawler will not execute JavaScript, but you can enable the execution of JavaScript: this package uses Browsershot subpackage. This package uses Puppeteer under the hood.
Goutte & Panther - same API and that’s important
PHP Web Scraping: What to know before you start with Symfony Panther, Goutte, and more
Web Scraping with PHP
Proxy in Panther:
https://github.com/symfony/panther#using-a-proxy
https://stackoverflow.com/questions/59583732/how-can-i-set-proxy-server-with-symfony-panther