PHPackages                             p7/struct-core - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. p7/struct-core

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

p7/struct-core
==============

Create service and repository migration model controller files

v1.1(1y ago)086MITPHP

Since Oct 5Pushed 1y ago1 watchersCompare

[ Source](https://github.com/huyphat0707/struct)[ Packagist](https://packagist.org/packages/p7/struct-core)[ RSS](/packages/p7-struct-core/feed)WikiDiscussions main Synced 1mo ago

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

Laravel CRUD Generator Command
==============================

[](#laravel-crud-generator-command)

This Laravel package provides a convenient Artisan command to generate CRUD (Create, Read, Update, Delete) files for a specified model. It automates the creation of model, controller, service, and repository files, allowing you to quickly set up CRUD operations for your application.

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

[](#installation)

To install the package, simply require it via Composer:

```
composer require p7/struct-core
```

Usage
-----

[](#usage)

After installing the package, you can use the make:crud command to generate CRUD files for a specific model. Here's how to use it:

```
php artisan core:crud ModelName
```

Replace ModelName with the name of your model. This command will generate the following files:

Model: app/Models/ModelName.php Controller: app/Http/Controllers/ModelNameController.php Service: app/Services/ModelNameService.php Repository: app/Repositories/ModelNameRepository.php

Or you can create each file separately

```
php artisan core:repository ModelName
php artisan core:helper ModelName
php artisan core:service ModelName
```

Example
-------

[](#example)

Let's say you have a model named Product and you want to create CRUD files for it. You can run the following command:

```
php artisan make:crud Product
```

This will generate the necessary files for CRUD operations on the Product model.

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

[](#contributing)

Contributions are welcome! If you encounter any issues or have suggestions for improvement, please feel free to open an issue or submit a pull request on GitHub.

License
-------

[](#license)

This package is open-source software licensed under the MIT license.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance31

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity45

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

Total

2

Last Release

708d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9858112249e522c62d92ce8619f5b3ac043594f21101caa01f2f6abf69268973?d=identicon)[crisha](/maintainers/crisha)

---

Top Contributors

[![huyphat0707](https://avatars.githubusercontent.com/u/61198641?v=4)](https://github.com/huyphat0707 "huyphat0707 (20 commits)")

### Embed Badge

![Health badge](/badges/p7-struct-core/health.svg)

```
[![Health](https://phpackages.com/badges/p7-struct-core/health.svg)](https://phpackages.com/packages/p7-struct-core)
```

###  Alternatives

[wireui/wireui

TallStack components

1.8k1.3M16](/packages/wireui-wireui)[livewire/volt

An elegantly crafted functional API for Laravel Livewire.

4205.3M84](/packages/livewire-volt)[ramonrietdijk/livewire-tables

Dynamic tables for models with Laravel Livewire

21147.4k](/packages/ramonrietdijk-livewire-tables)

PHPackages © 2026

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