spatie/laravel-package-tools
A base PackageServiceProvider for Laravel package authors to quickly register and publish config, views, translations, assets, routes, migrations, commands, view components/composers, and an optional interactive install command.
config, migrations, views) across engineering teams, improving maintainability and onboarding.Adopt when:
Look elsewhere if:
spatie/package-annotations.For Executives: "This toolkit cuts the time to build and maintain Laravel packages by 40%+ by automating repetitive setup—like auto-publishing config files or registering migrations. For example, our [Internal Tool X] team could release a shared auth package 3x faster, reducing tech debt. It’s a low-risk investment (MIT license, battle-tested by Spatie) that pays off when we scale modular features or open-source components."
For Engineering Leads:
"LaravelPackageTools standardizes how we package features (e.g., config/, migrations/, Blade views) so any engineer can onboard in hours, not days. It handles edge cases like conditional publishing or package discovery, so we avoid bugs like missing config files in production. For [Project Y], it’d let us ship [Feature Z] as a reusable package instead of copy-pasting code."
For Developers: *"No more manually registering config or migrations in every package. This gives you:
php artisan package:publish for all assets in one command.config/—the package handles the rest. See demo."*How can I help you explore Laravel packages today?