PHPackages                             cnd-api-maker/laravel - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. cnd-api-maker/laravel

ActiveLibrary[API Development](/categories/api)

cnd-api-maker/laravel
=====================

v0.1.5(3mo ago)521proprietaryPHPPHP ^8.2

Since Jan 21Pushed 3mo agoCompare

[ Source](https://github.com/coundia/cnd-api-maker-laravel)[ Packagist](https://packagist.org/packages/cnd-api-maker/laravel)[ RSS](/packages/cnd-api-maker-laravel/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (4)Versions (7)Used By (0)

cnd-api-maker/laravel
=====================

[](#cnd-api-makerlaravel)

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/laravel` is installed)

Requirements
------------

[](#requirements)

- PHP 8.2+
- Laravel 10 / 11 / 12
- `cnd-api-maker/core`
- (optional) `api-platform/laravel` if you generate API Platform resources

Install
-------

[](#install)

### Public install (Packagist)

[](#public-install-packagist)

```
composer require cnd-api-maker/laravel
```

### Local dev install (monorepo path)

[](#local-dev-install-monorepo-path)

In your Laravel app `composer.json`:

```
{
  "repositories": [
    { "type": "path", "url": "../cnd-api-maker/packages/cnd-api-maker/core" },
    { "type": "path", "url": "../cnd-api-maker/packages/cnd-api-maker/laravel" }
  ],
  "require": {
    "cnd-api-maker/laravel": "*"
  },
  "minimum-stability": "dev",
  "prefer-stable": true
}
```

Then:

```
composer update cnd-api-maker/core cnd-api-maker/laravel
```

Laravel registration
--------------------

[](#laravel-registration)

Auto-discovery is enabled via:

```
"extra": {
  "laravel": {
    "providers": [
      "CndApiMaker\\Laravel\\ApiPlatformMakerServiceProvider"
    ]
  }
}
```

If auto-discovery is disabled, register the provider manually in `config/app.php`.

Configuration
-------------

[](#configuration)

Quick start
-----------

[](#quick-start)

### install

[](#install-1)

- 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

[](#1-create-a-jdl-file)

Create a `.jdl` file describing your entities and relationships.

Example: `example.jdl`

```
entity Employee {
  firstName String required
  lastName String required
  email String
  phoneNumber String
  hireDate Instant
  salary Long
  commissionPct Long
}

entity Ticket {
  title String required
  due Long
}

relationship OneToMany {
  Employee to Ticket{employee}
}

```

Generate JDL using **JHipster JDL Studio**:

-

### 2) Install the generator (one-time)

[](#2-install-the-generator-one-time)

```
php artisan cnd:api-maker:install --force
```

### 3) Generate from JDL

[](#3-generate-from-jdl)

```
php artisan cnd:api-maker:generate --file=example.jdl
```

Common options (depending on your implementation):

- `--force` overwrite generated files
- `--dry-run` preview without writing
- `--module=...` generate into a specific module/namespace (if supported)

### 4) Run database + tests

[](#4-run-database--tests)

```
php artisan migrate
php artisan test
```

Generated output (example: multi-tenant + RBAC starter)
-------------------------------------------------------

[](#generated-output-example-multi-tenant--rbac-starter)

### API / Config

[](#api--config)

- `app/ApiResource/Health.php`
- `config/api-platform.php`
- `bootstrap/app.php`
- `bootstrap/providers.php`

### Console / Providers

[](#console--providers)

- `app/Console/Commands/GeneratePermissionsCommand.php`
- `app/Providers/TenancyServiceProvider.php`

### Tenancy

[](#tenancy)

- `app/Tenancy/TenantContext.php`
- `app/Models/Concerns/TenantOwned.php`
- `app/Tenancy/Http/Middleware/Authenticate.php`
- `app/Tenancy/Http/Middleware/ResolveTenant.php`

### Security / Auth / RBAC

[](#security--auth--rbac)

- RBAC:

    - `app/Security/Rbac/PermissionChecker.php`
    - `app/Security/Rbac/GrantsRbacPermissions.php`
    - `app/Security/Rbac/GrantsRbacPermissionsTenant.php`
- Auth API:

    - `app/Models/AuthResource.php`
    - `app/Dto/Auth/*`
    - `app/State/Auth/*`
    - `tests/Feature/Security/AuthApiTest.php`

### CRUD API (DTO + State layer)

[](#crud-api-dto--state-layer)

- DTOs:

    - `app/Dto/{Tenant,Role,Permission,RolePermission,UserRole}/*`
- State:

    - `app/State/{Tenant,Role,Permission,RolePermission,UserRole}/*`

### Eloquent Models + Factories

[](#eloquent-models--factories)

- Models:

    - `app/Models/{Tenant,Role,Permission,RolePermission,User,UserRole}.php`
- Factories:

    - `database/factories/{Tenant,Role,Permission,RolePermission,UserRole}Factory.php`

### Database

[](#database)

- Migrations:

    - `database/migrations/0001...0006_*`
- Seeders:

    - `database/seeders/{SecuritySeederTenant,DatabaseSeeder}.php`

### Tests

[](#tests)

- `tests/Support/BaseApiTestCase.php`
- `tests/Feature/*ApiTest.php`

Notes
-----

[](#notes)

### API Platform endpoints

[](#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

[](#regenerating-code)

- Use `--dry-run` to preview changes.
- Use `--force` to overwrite files when you intentionally want to regenerate.

Versioning
----------

[](#versioning)

SemVer tags: `vMAJOR.MINOR.PATCH`

License
-------

[](#license)

See `composer.json`.

```
::contentReference[oaicite:0]{index=0}

```

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance78

Regular maintenance activity

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

6

Last Release

117d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/75467020b382752e91918d3e0e2a188246808af65678f1ca7b1dc6a73d9ff71c?d=identicon)[pcoundia](/maintainers/pcoundia)

---

Top Contributors

[![coundia](https://avatars.githubusercontent.com/u/1387586?v=4)](https://github.com/coundia "coundia (3 commits)")

---

Tags

apiplatformlaravel

### Embed Badge

![Health badge](/badges/cnd-api-maker-laravel/health.svg)

```
[![Health](https://phpackages.com/badges/cnd-api-maker-laravel/health.svg)](https://phpackages.com/packages/cnd-api-maker-laravel)
```

###  Alternatives

[mollie/laravel-mollie

Mollie API client wrapper for Laravel &amp; Mollie Connect provider for Laravel Socialite

3624.1M28](/packages/mollie-laravel-mollie)[mll-lab/laravel-graphiql

Easily integrate GraphiQL into your Laravel project

683.2M9](/packages/mll-lab-laravel-graphiql)[esign/laravel-conversions-api

A laravel wrapper package around the Facebook Conversions API

69145.4k](/packages/esign-laravel-conversions-api)[didww/didww-api-3-php-sdk

PHP SDK for DIDWW API 3

1218.2k](/packages/didww-didww-api-3-php-sdk)[surface/laravel-webfinger

A Laravel package to create an ActivityPub webfinger.

113.8k](/packages/surface-laravel-webfinger)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
