Download the PHP package cnd-api-maker/laravel without Composer
On this page you can find all versions of the php package cnd-api-maker/laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package laravel
cnd-api-maker/laravel
Laravel integration for Cnd API Maker.
This package builds on top of cnd-api-maker/core and provides:
- Laravel Service Provider (auto-discovered)
- Artisan commands
- Laravel generators (migrations, models, factories, seeders, tests… depending on enabled modules)
- API Platform (Laravel) resource generation (if
api-platform/laravelis installed)
Requirements
- PHP 8.2+
- Laravel 10 / 11 / 12
cnd-api-maker/core- (optional)
api-platform/laravelif you generate API Platform resources
Install
Public install (Packagist)
`
Local dev install (monorepo path)
In your Laravel app composer.json:
Then:
Laravel registration
Auto-discovery is enabled via:
If auto-discovery is disabled, register the provider manually in config/app.php.
Configuration
Quick start
install
- 1 create a laravel project
composer create-project laravel/laravel starter-laravel
- 2 create a laravel project
composer require cnd-api-maker/laravel
1) Create a JDL file
Create a .jdl file describing your entities and relationships.
Example: example.jdl
Generate JDL using JHipster JDL Studio:
2) Install the generator (one-time)
3) Generate from JDL
Common options (depending on your implementation):
--forceoverwrite generated files--dry-runpreview without writing--module=...generate into a specific module/namespace (if supported)
4) Run database + tests
Generated output (example: multi-tenant + RBAC starter)
API / Config
app/ApiResource/Health.phpconfig/api-platform.phpbootstrap/app.phpbootstrap/providers.php
Console / Providers
app/Console/Commands/GeneratePermissionsCommand.phpapp/Providers/TenancyServiceProvider.php
Tenancy
app/Tenancy/TenantContext.phpapp/Models/Concerns/TenantOwned.phpapp/Tenancy/Http/Middleware/Authenticate.phpapp/Tenancy/Http/Middleware/ResolveTenant.php
Security / Auth / RBAC
-
RBAC:
app/Security/Rbac/PermissionChecker.phpapp/Security/Rbac/GrantsRbacPermissions.phpapp/Security/Rbac/GrantsRbacPermissionsTenant.php
-
Auth API:
app/Models/AuthResource.phpapp/Dto/Auth/*app/State/Auth/*tests/Feature/Security/AuthApiTest.php
CRUD API (DTO + State layer)
-
DTOs:
app/Dto/{Tenant,Role,Permission,RolePermission,UserRole}/*
-
State:
app/State/{Tenant,Role,Permission,RolePermission,UserRole}/*
Eloquent Models + Factories
-
Models:
app/Models/{Tenant,Role,Permission,RolePermission,User,UserRole}.php
-
Factories:
database/factories/{Tenant,Role,Permission,RolePermission,UserRole}Factory.php
Database
-
Migrations:
database/migrations/0001...0006_*
-
Seeders:
database/seeders/{SecuritySeederTenant,DatabaseSeeder}.php
Tests
tests/Support/BaseApiTestCase.phptests/Feature/*ApiTest.php
Notes
API Platform endpoints
If you generate API Platform resources, your documentation and endpoints depend on your api-platform configuration.
Check config/api-platform.php and the generated resources under app/ApiResource.
Regenerating code
- Use
--dry-runto preview changes. - Use
--forceto overwrite files when you intentionally want to regenerate.
Versioning
SemVer tags: vMAJOR.MINOR.PATCH
License
See composer.json.
All versions of laravel with dependencies
cnd-api-maker/core Version *
illuminate/support Version ^10.0|^11.0|^12.0
api-platform/laravel Version *
laravel/sanctum Version *