Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Laravel Package Template

Laravel Package Template Laravel Package

michael-rubel/laravel-package-template

A minimal starter skeleton for building Laravel packages, with preconfigured boilerplate for service providers, configuration files, tests, and Composer metadata so you can scaffold a new package quickly and focus on writing your own code instead of setup.

View on GitHub
Deep Wiki
Context7

It is an example template for Laravel packages. Fill or change it the way you like.

Frequently asked questions about Laravel Package Template
What is michael-rubel/laravel-package-template used for?
It is a starter skeleton for building Laravel packages, not a runtime library for applications. It provides boilerplate for common package pieces such as service providers, configuration files, tests, and Composer metadata. Teams use it to scaffold new packages faster and keep package setup consistent. Treat it as a template to copy, fork, or pin rather than a dependency to install in production.
How do I install or use this Laravel package template?
The usual approach is to create a new repository from the template, clone or fork it, and then rename the namespace, Composer package name, and metadata for your own package. You normally do not run composer require for the template itself because it is scaffolding, not an application dependency. After copying it, review the provider, config, test, and CI setup and adapt them to your standards.
Should I require michael-rubel/laravel-package-template via Composer?
No, it is generally not intended to be installed as a runtime Composer dependency. The Composer name identifies the template repository, but adoption is typically done by using it as a GitHub template, cloning it, or forking and pinning it. Requiring it in an application would add scaffolding you do not need at runtime.
Which Laravel and PHP versions does this package template support?
The provided context does not list exact Laravel and PHP version constraints for the 1.0 template. You should inspect the template's composer.json, CI matrix, and test setup to confirm its supported versions. Validate those constraints against your organization's Laravel and PHP support matrix before adopting it for new packages.
What changed between version 0.1 and 1.0 of this Laravel package template?
The context only notes that 1.0 is a stability milestone and that the release notes are minimal, mainly a changelog comparison link. Review the 0.1 to 1.0 diff in the repository before adopting it, because substantive changes are not summarized in detail. For a template, those changes matter most if you plan to re-sync or standardize on the 1.0 baseline.
Does the template include service providers, config publishing, migrations, and tests?
The template is described as preconfigured boilerplate for service providers, configuration files, tests, and Composer metadata. Migrations and CI details are common package concerns but should be verified directly in the repository for the 1.0 release. Check whether package discovery, config publishing, migrations, and testbench or Orchestra setup match your internal standards.
How should I test Laravel packages generated from this template?
Start by reviewing the test stack and CI configuration included in the template, then run the generated test suite locally and in CI. Adapt the tests to your package's service provider, configuration publishing, migrations, and any optional integrations. If the template does not already match your standards, add static analysis and your preferred test runner before the first release.
Is this template suitable for production Laravel applications?
It is not a production runtime dependency; it is a scaffold for creating Laravel packages. The packages you generate from it can be production code if you review and maintain their dependencies, tests, and service provider behavior. Do not evaluate the template like a library you deploy into an application.
How do I keep a forked Laravel package template up to date?
Fork or pin the 1.0 template and document the assumptions your internal packages inherit from it. Track upstream changes deliberately, review diffs, and only propagate updates that fit your supported Laravel, PHP, testing, and CI standards. Avoid automatically re-syncing every generated package, because template drift can create inconsistent structures.
What are alternatives to this Laravel package template?
Alternatives include Laravel's own package discovery conventions, other community package skeletons, or an internal template maintained by your team. The best choice depends on your required Laravel and PHP versions, test stack, CI setup, and whether you need a long-term supported baseline. Compare the release history, maintenance activity, and license before standardizing on any template.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
jinas/dhivatar
store-doc/laravel-storage-driver
plus-it/laravel-translation-manager
diephp/perhaps
diephp/telegraph
osmaviation/spreadsheet
microsoft/fluentui-system-icons
mmccook/php-json-canonicalization-scheme
middlewares/firewall
qubiqx/montapacking
nyoncode/laravel-package-console
pnscripts/filament-broadquill-lite
pnscripts/laravel-sentfold-lite
vleap/mx-sdk-laravel-internal
twidpay/utils
htetmyathlaing/scout-elasticsearch-driver
artisan-toolbox/front-awesome
ls/client-assistant
users-au/laravel-client
cgv/localized-resource