iportillo / skeleton-php
Basic PHP skeleton with the PSR-4 specification for class autoloading
Installs: 12
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
Type:project
Requires
- phpunit/phpunit: ^9.5
- symfony/var-dumper: ^6.0
- vlucas/phpdotenv: ^5.5
This package is auto-updated.
Last update: 2025-07-22 08:09:41 UTC
README
Basic php skeleton with the PSR-4 specification, for class autoloading.
Integrated into the skeleton linter for static analysis and code styles and automatic code refactoring.
Requires PHP 8.2+
Create new project
For initial new project, execute this command:
composer create-project iportillo/skeleton-php project-name
Commands in skeleton
Use codebase with Pint:
composer lint
Run refactors using Rector
composer refacto
Run static analysis using PHPStan:
composer test:types
Run unit tests using PEST
composer test:unit
Run the entire test suite:
composer test
Running server
cd public
php -S localhost:8000