spatie/laravel-package-tools
A base PackageServiceProvider for Laravel package authors. Quickly register and publish config, views, translations, assets, routes, migrations, commands, view components/composers, and install commands—all via a clean, fluent API.
vendor:publish workflows, config defaults).vendor:publish workflows (configs, assets, migrations) across packages."This tool cuts the time to ship Laravel packages by 80%, reducing technical debt and accelerating feature delivery. For example, our [Auth Package] currently requires 2 weeks of setup—this would shrink that to 2 days. It also standardizes how our teams publish configs, migrations, and assets, making updates 10x faster and reducing support tickets from inconsistent installations."
ROI:
vendor:publish workflows.*"This is the Laravel Package Starter Kit—it handles all the boring setup so you can focus on business logic. Key benefits:
vendor:publish tags and stub files (e.g., service providers).laravel-activitylog).Example: To add a Blade component, you just:
$package->hasViewComponent('alert', Alert::class);
No manual composer.json tweaks or service provider hacks.
Tradeoff: Requires adopting Spatie’s directory structure (but their package-skeleton makes this trivial)."*
How can I help you explore Laravel packages today?