- PHP 8.4+
You can create a new repository on GitHub or download the ZIP of the latest release.
You can also install it using composer :
composer create-project benjaminhaeberli/php-skeleton --prefer-source YourAppThen, install composer packages :
composer installMore details in composer.json
π§Ή Keep a modern codebase with Pint (see default config)
composer pintβοΈ Run static analysis using PHPStan
composer phpstanβ Run unit tests using PEST
composer pestπ Run the entire test suite
composer testπ§° Validate composer.json and update dependencies
composer core:updateπ Expose code coverage using PEST (require XDEBUG in coverage mode)
composer pest:coverageπ Measure the code quality with PHPInsights (see config\insights.php)
composer phpinsightsβ Run refactors using Rector
composer rectorPHP skeleton is maintained by Benjamin Haeberli under the MIT license.