A base service provider for writing Laravel packages
open sourceMITfree
Laravel Package Tools is a PHP library from Spatie for people writing Laravel packages. Your package's service provider extends its PackageServiceProvider and declares, in one fluent chain, what the package ships: config files, migrations, views and view components, translations, routes, Artisan commands and an install command that publishes them for the app using the package. It saves writing the registration and publishing code each package otherwise repeats.
Problems it solves
- stop writing the same service provider boilerplate for every Laravel package
- publish a package's config and migrations with one install command
- a starter for building a reusable Laravel package with config, views and migrations
Features
- register config, migrations, views, translations and routes in one fluent chain
- Artisan commands and an install command for your package
- view components and view composers
