Repository template for PHP libraries. Sets up composer, CI with Github Actions, and more.
- Configures
.gitignorefor common excludes in a PHP library
- Placeholders for library name, description, and PSR-4 autoloading
- Scripts for testing
- Requires current version of PHP
- Includes testing tools (configured) as dev dependencies
CI is configured using Github Actions.
- PHPUnit
^9.3with default configuration (src/tests). - The tests workflow uses a build matrix to test against multiple versions of PHP, and with high and low Composer dependencies installed
- PHPStan with strict ruleset, max level, and the PHPUnit extension
- PHP Code Sniffer configured with PSR-12