gergo-tar / laravel-package-skeleton
A PHP package to scaffold Laravel package projects with best practices and code quality tools.
Fund package maintenance!
gergo-tar
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
pkg:composer/gergo-tar/laravel-package-skeleton
Requires
- php: >=8.3
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.92
- phpstan/phpstan: ^2.1
- phpunit/phpunit: ^12.5
- rector/rector: ^2.2
- squizlabs/php_codesniffer: ^4.0
- vimeo/psalm: ^6.14
This package is auto-updated.
Last update: 2025-12-19 17:35:02 UTC
README
This package provides a modern, interactive skeleton for building Laravel packages with best practices and essential development tools.
π How It Works
-
Clone the skeleton:
git clone https://github.com/gergo-tar/laravel-plugin-skeleton my-package cd my-package -
Run the configuration script:
php configure.php
- The script will prompt for author, vendor, package, and feature options.
- Based on your selections, it generates all necessary files, and cleans up unused templates.
-
Start developing your package!
- All selected features (config, migrations, commands, etc.) are ready to use.
- Testing infrastructure (Pest) and dev tools (PHPStan, Rector) are pre-configured.
β¨ Conditional Features
- Configuration file: Only included if selected during setup. If enabled, you can publish it with:
php artisan vendor:publish --tag="my-package-config" - Migrations: Only included if selected. Publish with:
php artisan vendor:publish --tag="my-package-migrations" - Commands: Only included if selected. Usage instructions will be added for each command.
- Facade, Views, Routes, Translations, Assets: Documented and included only if selected.
π οΈ Development Tools
- Pest: Modern testing framework
- PHPStan (Larastan): Static analysis
- Rector: Automated refactoring
- Pint: Code style fixer
π¦ UsageUsage
- After configuration, your package is ready for local development or publishing.
- See
CONFIGURATIONfor a full guide to the configuration process and available features.
π License
MIT. See LICENSE for more information.
Your package, your way, in seconds! π