Download the PHP package ikechukwukalu/magicmake without Composer
On this page you can find all versions of the php package ikechukwukalu/magicmake. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ikechukwukalu/magicmake
More information about ikechukwukalu/magicmake
Files in ikechukwukalu/magicmake
Package magicmake
Short Description A scaffolding package for an opinionated Laravel coding style.
License Apache-2.0
Informations about the package magicmake
MAGIC MAKE
A Laravel scaffolding package for an opinionated Laravel coding style.
REQUIREMENTS
Magic Make supports only the following CI-proven Laravel/PHP combinations:
| Laravel | PHP | Support tier |
|---|---|---|
| 11 | 8.2–8.4 | Compatibility only; security support ended March 12, 2026 |
| 12 | 8.2–8.5 | Security fixes only through February 24, 2027 |
| 13 | 8.3–8.5 | Supported; security fixes through Q1 2028 |
Every listed Laravel/PHP combination is exercised in development CI. Laravel 11 compatibility is retained for established applications, but current Composer policy blocks its known vulnerable releases by default. The legacy jobs consciously bypass resolution blocking only to execute compatibility tests and still report every advisory; Laravel 12–13 jobs retain strict blocking and audit failure. Laravel 12 receives security fixes but its general bug-fix window ended August 13, 2026. PHP 7.3 and Laravel 8–10 were previously declared without matching syntax or CI evidence and are no longer advertised. The php: ^8.2 dependency floor does not advertise unlisted future PHP releases; support is limited to the combinations in this table until their complete CI jobs pass.
Magic Make installs only the dependencies needed by the scaffolder itself. Generated authentication, notification, activity-log, permissions, browser-detection, and other optional integrations require their corresponding suggested Composer packages. Run composer suggests ikechukwukalu/magicmake and install the integrations selected for your application profile.
STEPS TO INSTALL
SET UP LARAVEL
INIT CLASSES
To initialize prepared classes for a new laravel app. This would only run when env('APP_ENV') === local and env(MAGIC_INIT_LOCK) === false.
Initialization resolves and displays every destination before writing. An unchanged rerun is a no-op, customized files are reported as conflicts, and route includes are appended only once. Use --dry-run to inspect the plan. Use --force only after reviewing the displayed conflicts; it explicitly replaces conflicting generated files. Optional vendor integrations are not published automatically.
Response modes
Initialization creates config/magicmake.php with the application-wide response mode. Supported modes are view, json, and auto; the default is auto.
Response mode resolution is deterministic: a method-level override takes precedence over a controller-level override, which takes precedence over the application-wide default. Request content negotiation is consulted only when the resolved mode is auto.
Generated CRUD controllers explicitly use JSON mode to preserve the established API behavior:
Set the controller property to ResponseMode::VIEW, ResponseMode::AUTO, or null to select a controller-wide mode or inherit the application default. The generated base-controller methods also accept a final method-level response-mode argument. View mode requires a component name; selecting it without one raises an explicit error instead of silently returning JSON.
Application services remain presentation-agnostic and return ResponseData. Controllers and response helpers decide whether that data becomes a view or JSON response.
MODEL BASED CLASSES
To generate all model based prepared classes.
Feature names must be single PascalCase PHP identifiers. The command preflights the model, migration, contract, repository, service, controller, requests, factory, test, and API route as one plan. A conflict prevents every write, an unchanged rerun is non-destructive, and a failed write rolls the feature back. --dry-run displays the plan and --force explicitly overwrites conflicting artifacts.
For an established project, updating the package and running only magic:model does not replace files previously created by magic:init. Existing helpers, the application base controller, and ResponseData remain unchanged, so legacy JSON behavior is preserved. Adopting the newer initialization scaffolding is a separate, explicit migration; see UPGRADE.md.
Generation profiles
v5.0.1 added the Repository profile and shared repository autobinding. v5.1.0 makes that registration safe for both modern Laravel applications and upgraded applications that retain the legacy bootstrap structure.
--profile=standard remains the default and preserves the established Magic Make feature structure.
lean: model, migration, factory, and focused model test.repository: Lean plus a repository contract, repository implementation, and an array/ID-based service returningResponseDatawithout HTTP request dependencies.standard: model, migration, contract, repository, service, controller, create/update/delete/read requests, API route, factory, and feature test.enterprise: Standard plus a dedicated service provider with repository binding. For modular targets, the provider also loads the feature route and migrations.
Standard and Repository safely maintain one application-level App\Providers\RepositoryServiceProvider. In a modern Laravel 11–13 application, Magic Make creates or updates bootstrap/providers.php; in a conservatively recognized upgraded application that retains Laravel's legacy bootstrap structure, it preserves or safely updates the canonical config/app.php ServiceProvider::defaultProviders()->merge([...])->toArray() list instead. It never creates an unused modern registry for a legacy application. Existing unrelated provider content and registrations are preserved. An exact existing $this->app or zero-argument app() binding is retained whether it uses bind, singleton, or scoped lifecycle semantics (including their *If variants), or instance with a directly constructed repository; the application-selected lifecycle remains authoritative. Duplicate, dynamic, unparseable, or otherwise ambiguous registration structures and conflicting or ambiguous implementations stop the complete plan before any write; --force cannot bypass those semantic conflicts. Calls on unrelated receivers do not satisfy an application-container binding.
Modular targets and namespaces
Use a project-relative --path to keep every selected artifact inside a feature boundary. Magic Make derives the namespace from the most specific Composer PSR-4 mapping and displays the resolved profile, target, namespace, artifacts, and file actions before writing.
With the normal "App\\": "app/" mapping, the resolved namespace is App\Domains\Billing. An explicit namespace may be provided with --namespace; it must match the selected path. A namespace without a path derives its path only when the Composer mapping is unambiguous.
Modular Standard output includes a boundary-local route file but does not register that route automatically. Its repository binding is added to the shared application provider. Repository-profile output has no route. Enterprise providers retain their boundary-specific bindings and load their boundary-local route and migration directories; Enterprise does not change the shared provider or bootstrap/providers.php.
To generate individual model based prepared classes.
Note
Add this to config/api.php.
When using the individual magic:contract and magic:repository commands instead of a Standard or Repository profile, add the binding to app/Providers/RepositoryServiceProvider.php manually.
FINISHING SETUP
If you did run php artisan magic:init.
Add to the composer.json file.
After that run:
Add to bootstrap/providers.php.
Add to bootstrap/app.php
Add to vite.config.js
Project setup
Run development server
NOTE
Publish notification blade
Add the following line above this code line @if ($emailData->action) in the notification.blade.php file:
App notification helpers
Advanced search and table filter helpers
Sample usage:
LICENSE
The MM package is a software licensed under the Apache 2.0 license.
All versions of magicmake with dependencies
illuminate/support Version ^11.0|^12.0|^13.0
php Version ^8.2
symfony/console Version ^7.0|^8.0
symfony/finder Version ^7.0|^8.0