PHPackages                             byfallcode/byfall-crud - 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. byfallcode/byfall-crud

ActiveLibrary[API Development](/categories/api)

byfallcode/byfall-crud
======================

Laravel API CRUD generator (models, repositories, requests, controllers, resources, factories, seeders, Postman collections)

v1.0.0(5mo ago)417↓93.8%MITPHPPHP ^8.1

Since Jan 5Pushed 5mo agoCompare

[ Source](https://github.com/ByFallCode/byfall-crud)[ Packagist](https://packagist.org/packages/byfallcode/byfall-crud)[ RSS](/packages/byfallcode-byfall-crud/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (2)Used By (0)

Byfall CRUD
===========

[](#byfall-crud)

**Byfall CRUD** is a Laravel package that generates a complete REST API CRUD from your database schema or migrations.

It helps you rapidly scaffold:

- Models
- Repositories
- Form Requests (Store / Update)
- Controllers (API only)
- API Resources &amp; Collections
- Factories
- Seeders
- Postman API collections (JSON)

> Designed for Laravel 10, 11, 12+ and PHP 8.1+

---

✨ Features
----------

[](#-features)

- 🚀 Generate full API CRUD in one command
- 🧠 Infer fields, validation rules, casts and relations
- 🗄️ Source from **database** or **migration files**
- 🧪 Ready-to-use FormRequests (store &amp; update)
- 🧱 Repository pattern
- 📦 API Resources &amp; Collections
- 🌱 Factories and Seeders
- 📬 Postman collection generation
- 🧹 Safe deletion of generated files
- 🔮 Forward-compatible with future Laravel versions

---

📋 Requirements
--------------

[](#-requirements)

- PHP &gt;= 8.1
- Laravel &gt;= 10

---

📦 Installation
--------------

[](#-installation)

```
composer require byfallcode/byfall-crud
```

---

Laravel automatically discovers the service provider.

🚀 Available Artisan Commands
----------------------------

[](#-available-artisan-commands)

make:entity – Generate a complete API CRUD

delete:entity – Remove generated files

make:api-collection – Generate Postman collections

---

🚀Arguments
----------

[](#arguments)

Argument Description name Entity name in StudlyCase (e.g. Post, Category, UserProfile) Options Option Description

- --source=db Infer entity from the database schema (default)
- --source=migration Infer entity from a migration file
- --table= Database table name (only when --source=db)
- --migration= Path to the migration file (required with --source=migration)
- --no-resources Skip API Resources &amp; Collections
- --no-factory Skip Factory generation
- --no-seeder Skip Seeder generation
- --no-collection-json Skip Postman collection generation
- --force Overwrite existing files without confirmation

---

### Examples

[](#examples)

#### 1️⃣ Generate an entity from the database (default)

[](#1️⃣-generate-an-entity-from-the-database-default)

`php artisan make:entity Category --source=db`

- Uses table `categories` by default
- Automatically infers:

    - columns
    - nullable / required fields
    - unique constraints
    - foreign keys (`belongsTo`)
    - validation rules
    - casts
    - soft deletes

---

#### 2️⃣ Generate an entity from the database with a custom table name

[](#2️⃣-generate-an-entity-from-the-database-with-a-custom-table-name)

`php artisan make:entity Category --source=db --table=product_categories`

---

#### 3️⃣ Generate an entity from a migration file

[](#3️⃣-generate-an-entity-from-a-migration-file)

`php artisan make:entity Category  --source=migration  --migration="database/migrations/2026_01_04_210315_create_categories_table.php"`

Useful when:

- the database is not migrated yet
- you want to scaffold before deployment

---

#### 4️⃣ Generate an entity without optional components

[](#4️⃣-generate-an-entity-without-optional-components)

`php artisan make:entity Category \   --no-resources \   --no-factory \   --no-seeder \   --no-collection-json`

---

#### 5️⃣ Force regeneration of an entity

[](#5️⃣-force-regeneration-of-an-entity)

`php artisan make:entity Category --force`

⚠️ This will overwrite all previously generated files.

---

### API Route (manual step)

[](#api-route-manual-step)

After generating an entity, register the API route manually:

`use App\Http\Controllers\CategoryController;  Route::apiResource('categories', CategoryController::class);`

---

🧹 delete:entity — Usage
-----------------------

[](#-deleteentity--usage)

Remove all files generated by `make:entity`.

`php artisan delete:entity Category`

With confirmation for each file.

Force deletion (no confirmation):

`php artisan delete:entity Category --force`

This command removes:

- Model
- Repository
- Controller
- Form Requests
- API Resources &amp; Collections
- Factory
- Seeder
- Postman collection

---

📬 make:api-collection — Usage
-----------------------------

[](#-makeapi-collection--usage)

Generate a Postman collection for API resources.

### From database (default)

[](#from-database-default)

`php artisan make:api-collection`

### From migrations

[](#from-migrations)

`php artisan make:api-collection --source=migrations`

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance69

Regular maintenance activity

Popularity10

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity43

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

Unknown

Total

1

Last Release

179d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5dd2292657961a08e1c27c9d9a735b452543c73a7921c2bf76ed042ca9e1b564?d=identicon)[ByFallCode](/maintainers/ByFallCode)

---

Top Contributors

[![ByFallCode](https://avatars.githubusercontent.com/u/64171287?v=4)](https://github.com/ByFallCode "ByFallCode (1 commits)")

### Embed Badge

![Health badge](/badges/byfallcode-byfall-crud/health.svg)

```
[![Health](https://phpackages.com/badges/byfallcode-byfall-crud/health.svg)](https://phpackages.com/packages/byfallcode-byfall-crud)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35916.4M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24016.2M20](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172445.0k15](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93459.5k6](/packages/botman-driver-telegram)

PHPackages © 2026

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