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

Api Crudify Laravel Package

mehedi8gb/api-crudify

Laravel package that generates standardized API CRUD (controller/service/repository/resources/requests/tests) and a query-driven pipeline for relations, filters, sorting, soft deletes, and pagination via URL params. Supports DDD namespaces and auto route/setup.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Accelerate API Development Velocity: Reduces boilerplate for CRUD APIs by 70%+ via single-command generation of controllers, services, repositories, models, and tests. Enables teams to ship MVP features in days instead of weeks.
  • Standardize Architecture: Enforces Service-Repository pattern and Chain of Responsibility pipeline, ensuring consistency across APIs and reducing technical debt from ad-hoc implementations.
  • Build vs. Buy Decision: Justifies buying this package for teams maintaining 5+ Laravel APIs with repetitive CRUD logic. For smaller projects (<3 APIs), custom development may be more cost-effective.
  • Roadmap Priorities:
    • Phase 1: Adopt for internal admin panels (e.g., User, Product, Order CRUD).
    • Phase 2: Extend to public APIs with domain-specific namespaces (e.g., V1/Inventory/Stock).
    • Phase 3: Customize query handlers for complex business logic (e.g., multi-tenancy, audit trails).
  • Use Cases:
    • Admin Dashboards: Rapidly scaffold data management interfaces.
    • Public APIs: Standardize endpoints for frontend/mobile apps with dynamic filtering/sorting.
    • Legacy Migration: Retrofit existing Eloquent models into the structured pipeline.

When to Consider This Package

Adopt if:

  • Your team builds 3+ Laravel APIs with repetitive CRUD operations (e.g., CMS, SaaS platforms).
  • You prioritize developer velocity over full customization (e.g., 80% of CRUD logic is standard).
  • Your APIs require dynamic filtering/sorting/pagination with query parameter-driven logic.
  • You need built-in support for soft deletes, relations, and validation without manual setup.
  • Your stack includes Laravel 9+ and you’re comfortable with Service-Repository patterns.

Look elsewhere if:

  • Your APIs are highly customized (e.g., GraphQL, WebSockets, or event-driven architectures).
  • You require real-time updates (this package is optimized for RESTful batch operations).
  • Your team lacks Laravel/PHP expertise to debug or extend the generated code.
  • You need multi-tenancy support out-of-the-box (requires custom query handler extensions).
  • You’re using Laravel <8.0 (compatibility not guaranteed).
  • Your project has strict security audits (package is MIT-licensed but lacks enterprise-grade validation).

How to Pitch It (Stakeholders)

For Executives: "This package cuts API development time by 70% for repetitive CRUD operations, letting our team focus on high-value features. For example, generating a fully functional Product API—including validation, filtering, and pagination—takes one command instead of days of manual coding. It enforces best practices (Service-Repository pattern) and reduces bugs from inconsistent implementations. The cost? A one-time setup and minimal maintenance overhead. ROI: Faster time-to-market for admin tools and public APIs, with lower technical debt."

For Engineering: *"Api Crudify automates the entire CRUD stack (controllers, services, repos, tests) while enforcing a scalable query pipeline. Key benefits:

  • Dynamic queries: Frontend-friendly ?q= shorthand (e.g., ?q=title=phone|status=active) with relation support.
  • Zero boilerplate: No more writing index(), store(), update()—it’s all generated.
  • Extensible: Override any handler (e.g., add caching, multi-tenancy) without rewriting core logic.
  • Test coverage: Includes feature tests for every endpoint. Use case: Perfect for internal tools (e.g., UserManagement, Inventory) or public APIs where 80% of logic is standard CRUD. Trade-off: Less control over edge cases, but saves 10+ hours per API."*

For Developers: *"This is like Laravel’s make:controller on steroids—but for the whole stack. Run php artisan crudify:make Product and it spits out:

  • A Controller (with route registration).
  • Service/Repository layers (strict separation of concerns).
  • Query pipeline (soft deletes, relations, filtering, sorting, pagination—all configurable via URL params).
  • Validation, resources, migrations, factories, and tests. Pro tip: Extend the Chain of Responsibility handlers to add custom logic (e.g., audit logging, tenant filtering) without touching the generated code."*
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