This is a skeleton repo for scaffolding new Laravel packages.
It bundles the tooling we reach for on every package: Pest, PHPStan, Laravel Pint, Rector, and Orchestra Testbench. Run the configure script once and start writing code.
- Click "Use this template" on GitHub to create a new repository.
- Clone your new repo locally.
- Run the setup script:
php configure.php- Replace this README section with your own documentation.
- Start building in
src/.
This is where your description should go. Limit it to a paragraph or two. Consider adding a small example.
- PHP ^8.3
- Laravel ^12.0 || ^13.0
composer require :vendor_slug/:package_slugPublish the config file:
php artisan vendor:publish --tag=":package_slug-config"$skeleton = new VendorName\Skeleton();
echo $skeleton->echoPhrase('Hello, VendorName!');The skeleton ships with a full quality toolchain. Run everything at once:
composer testOr run checks individually:
composer lint # Auto-fix code style/refactors (Pint + Rector)
composer lint:rector # Run Rector only
composer test:lint # Check Pint + Rector without changing files
composer test:refactor # Check Rector without changing files
composer test:types # Run PHPStan static analysis
composer test:unit # Run Pest tests with coveragePlease see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.