PHPackages                             thebinoculars/code-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. [Framework](/categories/framework)
4. /
5. thebinoculars/code-generator

ActiveLibrary[Framework](/categories/framework)

thebinoculars/code-generator
============================

Code generator for Laravel

v1.0(9mo ago)00MITPHPPHP ^7.2.5

Since Aug 8Pushed 9mo ago1 watchersCompare

[ Source](https://github.com/thebinoculars/code-generator)[ Packagist](https://packagist.org/packages/thebinoculars/code-generator)[ RSS](/packages/thebinoculars-code-generator/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (2)Used By (0)

[![Packagist Version](https://camo.githubusercontent.com/c96ff2893c15fccd7a274cfd646e507011077c8b13977e808edba547486c08c9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f74686562696e6f63756c6172732f636f64652d67656e657261746f72)](https://camo.githubusercontent.com/c96ff2893c15fccd7a274cfd646e507011077c8b13977e808edba547486c08c9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f74686562696e6f63756c6172732f636f64652d67656e657261746f72)

Code Generator for Laravel
==========================

[](#code-generator-for-laravel)

Using this package to generate controller, migration, model, route, request, resource for your Laravel application

Installation
------------

[](#installation)

```
composer require thebinoculars/code-generator --dev
```

Usage
-----

[](#usage)

```
php artisan generate:code YOUR_MODEL_NAME --field "FIELD_NAME:FIELD_TYPE"
```

### Example

[](#example)

```
php artisan generate:code product --field "name:string"
```

### Custom your own templates

[](#custom-your-own-templates)

```
php artisan vendor:publish --tag=code-generator
```

- Available field types: **smallint**, **bigint**, **datetimetz**, **blob**, **integer**, **boolean**, **date**, **time**, **datetime**, **text**, **decimal**, **float**, **object**, **array**, **simple\_array**, **json\_array**, **guid**
- You can also use our `BaseService` by extending `TheBinoculars\CodeGenerator\Services\BaseService` class or create your own
- List of variables used in filename: **(XXX)** is equivalent to **.XXX** (extension) **{YYY}** is equivalent to global config variable **YYY** (defined in `config/generator`) **\[ZZZ\]** is equivalent to model form variable **ZZZ** (available values: **PLURAL\_UPPER**, **PLURAL\_LOWER**, **PLURAL\_UC**, **PLURAL\_STUDLY**, **PLURAL\_CAMEL**, **PLURAL\_KEBAB**, **PLURAL\_SNAKE**, **UPPER**, **LOWER**, **UC**, **STUDLY**, **CAMEL**, **KEBAB**, **SNAKE**)
- You can also use model form variables and global config variables in templates

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance57

Moderate activity, may be stable

Popularity0

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity31

Early-stage or recently created project

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

Unknown

Total

1

Last Release

283d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/468cfb359db0d06315ca2df3c49c02e11a34d1331ac12faca9125f2c6a09dd75?d=identicon)[thebinoculars](/maintainers/thebinoculars)

---

Tags

laravelgenerator

### Embed Badge

![Health badge](/badges/thebinoculars-code-generator/health.svg)

```
[![Health](https://phpackages.com/badges/thebinoculars-code-generator/health.svg)](https://phpackages.com/packages/thebinoculars-code-generator)
```

###  Alternatives

[laravel/horizon

Dashboard and code-driven configuration for Laravel queues.

4.1k84.2M225](/packages/laravel-horizon)[laravel/ui

Laravel UI utilities and presets.

2.7k134.9M601](/packages/laravel-ui)[laravel/jetstream

Tailwind scaffolding for the Laravel framework.

4.1k19.8M136](/packages/laravel-jetstream)[internachi/modular

Modularize your Laravel apps

1.1k662.4k8](/packages/internachi-modular)[64robots/checkout

Checkout Package.

382.9k](/packages/64robots-checkout)

PHPackages © 2026

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