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 Command Laravel Package

mckenziearts/laravel-command

Dev-only Artisan generators for Laravel: quickly scaffold templated repositories, helpers, and observers. Adds make:repository and related commands to create boilerplate files, with configurable model namespaces for non-standard app structures.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Developer Productivity: Accelerates scaffolding of repositories, observers, and helpers—reducing boilerplate code for CRUD operations, event-driven logic, and utility functions. Ideal for teams adopting Domain-Driven Design (DDD) or Clean Architecture patterns.
  • Consistent Code Structure: Enforces standardized file organization (e.g., App/Repositories/, App/Observers/), improving onboarding and maintainability for mid-to-large Laravel projects.
  • Build vs. Buy: Justifies buying this package over custom solutions for teams with repetitive scaffolding needs (e.g., >10 models). Avoids reinventing the wheel for basic Laravel patterns.
  • Roadmap Alignment:
    • Legacy Modernization: Helps migrate monolithic controllers to repository/observer patterns incrementally.
    • Internal Tools: Enables rapid prototyping of admin panels, data migration scripts, or CLI-driven workflows (e.g., php artisan generate:report).
  • Use Cases:
    • Bootstrapping Projects: Quickly set up repositories/observers for new models during sprint 0.
    • Event-Driven Logic: Automate observer generation for audit trails, notifications, or soft-deletes.
    • Helper Utilities: Centralize reusable logic (e.g., image processing, API clients) in App/Helpers/.

When to Consider This Package

Adopt if:

  • Your Laravel project uses repositories, observers, or helpers as core patterns (e.g., DDD, Clean Architecture).
  • Your team frequently creates models and needs to scaffold related files (e.g., >5 models/month).
  • You prioritize consistency over flexibility (e.g., enforcing a single namespace structure like App/Repositories/).
  • Your CLI workflows are Laravel-centric (e.g., no need for cross-language tooling like Python/Node.js).

Look elsewhere if:

  • You don’t use repositories/observers: If your project relies on active record or query builders without abstraction layers, this package adds unnecessary complexity.
  • You need advanced CLI features: For interactive prompts, progress bars, or tables, consider:
    • Symfony Console (more powerful but heavier).
    • Laravel Nova’s CLI (if using Nova).
    • Custom Artisan commands (for one-off tasks).
  • Your namespace structure is non-standard: The package assumes models are in App\Models/; custom namespaces require manual overrides.
  • You’re on Laravel <5.4: The package lacks support for older versions (last release: 2018).

How to Pitch It (Stakeholders)

For Executives: "This package cuts 30–50% of the time spent writing boilerplate for Laravel models. For example, generating a repository, observer, and helper for a new User model—tasks that take 15+ minutes manually—now takes under a minute. It’s a no-code tool for developers, reducing busywork so they can focus on business logic. Low risk: it’s open-source, Laravel-native, and maintained by the community."

For Engineering: *"Pros:

  • Zero-config scaffolding: php artisan make:repository User creates a full repository class with dependency injection.
  • Observer hooks: Automatically generates creating(), updated(), etc., methods for event-driven logic.
  • Helper utilities: Quickly spin up reusable classes (e.g., MediaHelper for image processing).
  • Laravel-native: Uses the service container, validation, and Eloquent—no external dependencies.

Cons:

  • Limited customization: Generated files are templated; advanced logic requires manual edits.
  • No active maintenance: Last release was 2018, but the core functionality is stable for Laravel 5.5+.
  • Namespace assumptions: Assumes App\Models\; custom namespaces need manual fixes.

Use Case: Replace our manual make:model --migration + hand-written repository process with this. Example:

php artisan make:repository User          # Repository
php artisan make:observer User           # Observer
php artisan make:helper Media           # Helper

For PMs: *"Prioritize this if:

  1. Your team is building a Laravel monolith with >10 models.
  2. You’re migrating from controllers-to-service or adopting DDD.
  3. Developers complain about repetitive scaffolding (e.g., ‘I spend too much time writing the same CRUD code’).

Alternatives:

  • Custom scripts: Only worth it if you have <5 models or unique needs.
  • Symfony Console: Overkill for simple scaffolding but better for interactive CLIs.

Next Steps:

  1. Pilot: Try it on 2–3 non-critical models to validate time savings.
  2. Document: Add a CONTRIBUTING.md section for customizing generated files.
  3. Monitor: Watch for Laravel 10+ compatibility issues (if upgrading)."*
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.
jayeshmepani/jpl-moshier-ephemeris-php
elnasnato/laraliveui
labrodev/rest-sdk
sampaui/sampaui
babelqueue/php-sdk
facebook/capi-param-builder-php
babelqueue/symfony
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