benjaminhaeberli/php-skeleton
| Install | |
|---|---|
composer require benjaminhaeberli/php-skeleton |
|
| Latest Version: | v0.2.0 |
| PHP: | ^8.4 |
| License: | MIT |
| Last Updated: | Apr 22, 2026 |
| Links: | GitHub · Packagist |
PHP Skeleton 🐘
Getting started 🔎
Requirements
- PHP 8.4+
Installation
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 YourApp
Then, install composer packages :
composer install
Commands ⌨️
More details in composer.json
Common
🧹 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
Code quality & refactoring
💎 Measure the code quality with PHPInsights (see config\insights.php)
composer phpinsights
✅ Run refactors using Rector
composer rector
PHP skeleton is maintained by Benjamin Haeberli under the MIT license.
Related Packages
A package to record and analyze database queries in Laravel applications.
File-based Inertia routing, simplified server controllers + typed models & props
Laravel package skeleton with Pest, PHPStan, Rector and Pint wired up, and 100%...
Version History
| Version | Released | PHP | License |
|---|---|---|---|
| v0.2.0 | ^8.4 | MIT | |
| v0.1.0 | ^8.3.0 | MIT |