Weave Code
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 Tools Laravel Package

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.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Accelerate Laravel Package Development: Reduces boilerplate for config, migrations, and publishable assets, enabling faster iteration on internal tools, SDKs, or open-source packages.
  • Standardize Package Structure: Enforces consistent conventions (e.g., config, migrations, views) across engineering teams, improving maintainability and onboarding.
  • Build vs. Buy: Justifies building reusable Laravel packages (e.g., for analytics, auth, or domain-specific logic) instead of relying on third-party solutions with rigid constraints.
  • Roadmap for Package Ecosystem: Critical for teams planning to release multiple packages (e.g., modular SaaS features) or contribute to open-source.
  • Developer Experience (DX): Reduces friction for junior engineers by abstracting complex Laravel package setup (e.g., auto-registering commands, views, or Blade components).

When to Consider This Package

  • Adopt when:

    • Building reusable Laravel packages (internal or public) with shared config, migrations, or assets.
    • Teams need consistent package scaffolding to avoid reinventing the wheel (e.g., for CLI tools, SDKs, or plugin systems).
    • Prioritizing developer velocity over minimal package size (adds ~50KB to vendor dir).
    • Laravel 8+ projects where package tools are a core need (e.g., enterprise apps with modular architecture).
  • Look elsewhere if:

    • Your package is trivial (e.g., a single Artisan command with no config/assets).
    • Using non-Laravel frameworks (e.g., Symfony, Livewire-only projects).
    • Constrained by package size (this adds a dependency; consider manual registration instead).
    • Need advanced package discovery (e.g., Composer plugin integration)—supplement with spatie/package-annotations.

How to Pitch It (Stakeholders)

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.
  • Auto-discovery of service providers, commands, and Blade components.
  • Pre-built scaffolding for CLI tools, SDKs, or plugins. Example: Adding a new config file? Just drop it in config/—the package handles the rest. See demo."*
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.
hamzi/corewatch
minionfactory/raw-hydrator
hexters/coinpayment
rjcodes/rjcms
act-training/laravel-permissions-manager
alimarchal/laravel-chart-of-accounts
babenkoivan/elastic-scout-driver
mkwebdesign/filament-watchdog-v5
renatomarinho/laravel-page-speed
zedmagdy/filament-business-hours
renatovdemoura/blade-elements-ui
devgeek/beacon-admin
benjamin-rqt/data-watcher-bundle
atriumphp/atrium
sandermuller/package-boost-laravel
sandermuller/boost-skills
redaxo/core
yusufgenc/filament-api-forge
l3aro/rating-star-for-filament
leek/filament-subtenant-scope