PHPackages                             harryes/crudpackage - 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. harryes/crudpackage

ActiveLibrary[API Development](/categories/api)

harryes/crudpackage
===================

A package to handle Api CRUD operations in Laravel

1.0.2(1y ago)334MITPHPPHP ^7.3|^8.0

Since Aug 14Pushed 1y ago1 watchersCompare

[ Source](https://github.com/Harish120/CrudPackage)[ Packagist](https://packagist.org/packages/harryes/crudpackage)[ RSS](/packages/harryes-crudpackage/feed)WikiDiscussions main Synced 1mo ago

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

Laravel CRUD Package
====================

[](#laravel-crud-package)

A Laravel package to automatically generate CRUD operations including models, migrations, controllers, resources, and routes based on a specified model with dynamic columns.

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

[](#installation)

To install the package, run:

```
composer require harryes/crudpackage
```

Usage
-----

[](#usage)

After installation, you can generate CRUD operations using the `crud:generate` Artisan command.

### Basic Command

[](#basic-command)

To generate CRUD operations for a model:

```
php artisan crud:generate ModelName --columns=name:string,email:string,age:integer
```

### Parameters

[](#parameters)

- **`model`**: The name of the model for which CRUD operations will be generated.
- **`--columns=`**: A comma-separated list of columns with their types. Example: `name:string,email:string,age:integer`.

### Supported types:

[](#supported-types)

The following data types are supported:

- `bigIncrements`
- `bigInteger`
- `binary`
- `boolean`
- `char`
- `date`
- `dateTime`
- `decimal`
- `double`
- `enum`
- `float`
- `geometry`
- `geometryCollection`
- `increments`
- `integer`
- `ipAddress`
- `json`
- `jsonb`
- `lineString`
- `longText`
- `macAddress`
- `mediumIncrements`
- `mediumInteger`
- `mediumText`
- `morphs`
- `multiLineString`
- `multiPoint`
- `multiPolygon`
- `nullableMorphs`
- `nullableTimestamps`
- `point`
- `polygon`
- `rememberToken`
- `set`
- `smallIncrements`
- `smallInteger`
- `softDeletes`
- `softDeletesTz`
- `string`
- `text`
- `time`
- `timeTz`
- `timestamp`
- `timestampTz`
- `tinyIncrements`
- `tinyInteger`
- `tinyText`
- `unsignedBigInteger`
- `unsignedDecimal`
- `unsignedInteger`
- `unsignedMediumInteger`
- `unsignedSmallInteger`
- `unsignedTinyInteger`
- `uuid`
- `year`

### Column Modifiers

[](#column-modifiers)

- Add `?` after the type to make the column nullable. Example: `email:string?`.
- Add `*` after the type followed by a value to set a default value. Example: `active:boolean*true`.

### Example Commands

[](#example-commands)

1. Generate CRUD for a model with dynamic columns:

    ```
    php artisan crud:generate SocialUser --columns=name:string,address:string?,phone:string,email:string
    ```
2. Generate CRUD for a model without dynamic columns:

    ```
    php artisan crud:generate SocialUser
    ```

### Validation Rules

[](#validation-rules)

If dynamic columns are provided, the package automatically generates validation rules for the controller. Nullable columns are handled with the `nullable` rule.

Generated Files
---------------

[](#generated-files)

The package generates the following files for the specified model:

- **Model**: `app/Models/{ModelName}.php`
- **Migration**: `database/migrations/xxxx_xx_xx_create_model_name_table.php`
- **Controller**: `app/Http/Controllers/Api/{ModelName}Controller.php`
- **Resource**: `app/Http/Resources/{ModelName}Resource.php`
- **Route**: Adds an API resource route in `routes/api.php`

Contributing
------------

[](#contributing)

Feel free to submit a pull request if you would like to contribute to the package.

License
-------

[](#license)

This package is open-source software licensed under the [MIT license](https://opensource.org/licenses/MIT).

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance46

Moderate activity, may be stable

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity46

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 ~96 days

Total

3

Last Release

441d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c54cb41297fa3b2ecdf2284923115a78e643fec7a1967176a3a89eec0ad6f5ab?d=identicon)[Harish120](/maintainers/Harish120)

---

Top Contributors

[![Harish120](https://avatars.githubusercontent.com/u/27349710?v=4)](https://github.com/Harish120 "Harish120 (24 commits)")

---

Tags

apilaravelpackagegeneratorlaravel-packagecruddynamiccrud generator

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/harryes-crudpackage/health.svg)

```
[![Health](https://phpackages.com/badges/harryes-crudpackage/health.svg)](https://phpackages.com/packages/harryes-crudpackage)
```

###  Alternatives

[joisarjignesh/bigbluebutton

BigBlueButton Server API Library for Laravel

162145.5k1](/packages/joisarjignesh-bigbluebutton)[mrdebug/crudgen

Create a Laravel Crud in a few seconds

31826.8k](/packages/mrdebug-crudgen)

PHPackages © 2026

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