PHP: Miscellaneous

PHP: Miscellaneous

Modern Tooling

  • Deployer
    A deployment tool written in PHP with support for popular frameworks out of the box.

Unit testing PHP?

Quickly Perform PHP Unit Testing With PHPUnit

Interesting PHP libraries

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

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

date 27. Aug 2019 | modified 28. May 2021
filename: PHP » Miscellaneous