PHP Package Template
Project Overview
Template repository to scaffold a PHP library with Composer. Click “Use this template” to start a new package; includes install/usage notes and ready-to-run Composer scripts.
Key Features
- Composer scripts for linting, fixing, tests, and coverage (
lint
,lint:fix
,test
,test:coverage
). - Testing via PHPUnit (
phpunit.xml.dist
) and example test suite. - Static analysis with PHPStan (
phpstan.neon.dist
). - Code style using PHP-CS-Fixer (
.php-cs-fixer.php
). - CI scaffolding in
.github/
(GitHub Actions-ready). - Changelog & MIT license included (
CHANGELOG.md
,LICENSE
).
Check out the project repository on Github for more info.