PHPackages                             marcha/api-container-generator - 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. marcha/api-container-generator

ActiveLibrary[API Development](/categories/api)

marcha/api-container-generator
==============================

Generate Controller, Model, Migration, Repository, Service, Events and Routes

011PHP

Since Jul 5Pushed 10mo agoCompare

[ Source](https://github.com/marcha/api-container-generator)[ Packagist](https://packagist.org/packages/marcha/api-container-generator)[ RSS](/packages/marcha-api-container-generator/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel 5 Api container generator
=================================

[](#laravel-5-api-container-generator)

Container generator create folder with Controller, Model, Service, Repository, Events and routes files and folders. Execute DumpAutoload at the end.

Install
-------

[](#install)

`php composer require marcha/api-container-generator`

Use
---

[](#use)

For generator use plural name of entity in snake\_case

### Single word table name `flights`:

[](#single-word-table-name-flights)

Run command: `php artisan marcha:create-container flights` and next files and folders will be created:

Container: `app\api\Flights`

Model: `app\api\Flights\Models\Flight.php`

Events: `app\api\Flights\Events\FlightWas{Created|Deleted|Updated}.php`

Repository: `app\api\Flights\Repositories\FlightRepository.php`

Service: `app\api\Flights\Services\FlightServce.php`

Controller: `app\api\Flights\Controllers\FlightController.php`

Resource: `app\api\Flights\Resource\FlightsResource.php`

Routes: `app\api\Flights\routes.php`

### Two words table name: `flight_operators`:

[](#two-words-table-name-flight_operators)

Run command: `php artisan marcha:create-container flight_operators` and next files and folders will be created:

Container: `app\api\FlightOperators`

Model: `app\api\FlightOperators\Models\FlightOperator.php`

Events: `app\api\Flights\Events\FlightOperatorWas{Created|Deleted|Updated}.php`

Repository: `app\api\FlightOperators\Repositories\FlightOperatorRepository.php`

Service: `app\api\FlightOperators\Services\FlightOperatorServce.php`

Controller: `app\api\FlightOperators\Controllers\FlightOperatorController.php`

Resource: `app\api\FlightOperators\Resource\FlightOperatorResource.php`

Routes: `app\api\FlightOperators\routes.php`

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance39

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity14

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3828422?v=4)[Nikola Marčić](/maintainers/marcha)[@marcha](https://github.com/marcha)

---

Top Contributors

[![marcha](https://avatars.githubusercontent.com/u/3828422?v=4)](https://github.com/marcha "marcha (11 commits)")

### Embed Badge

![Health badge](/badges/marcha-api-container-generator/health.svg)

```
[![Health](https://phpackages.com/badges/marcha-api-container-generator/health.svg)](https://phpackages.com/packages/marcha-api-container-generator)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[facebook/php-business-sdk

PHP SDK for Facebook Business

90821.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

74513.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

265103.1M454](/packages/google-gax)[google/common-protos

Google API Common Protos for PHP

173103.7M50](/packages/google-common-protos)

PHPackages © 2026

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