PHPackages                             thantzin-soe/laravel-repository-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. thantzin-soe/laravel-repository-generator

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

thantzin-soe/laravel-repository-generator
=========================================

Generate laravel repositories

1.0.0(2y ago)09MITPHPPHP ^8.1

Since Jul 13Pushed 2y ago1 watchersCompare

[ Source](https://github.com/thantzin-soe/laravel-repository-generator)[ Packagist](https://packagist.org/packages/thantzin-soe/laravel-repository-generator)[ Docs](https://github.com/thantzin-soe/laravel-repository-generator)[ RSS](/packages/thantzin-soe-laravel-repository-generator/feed)WikiDiscussions main Synced yesterday

READMEChangelog (1)Dependencies (8)Versions (2)Used By (0)

Generate laravel repositories
=============================

[](#generate-laravel-repositories)

[![Latest Version on Packagist](https://camo.githubusercontent.com/689ab969d4fdda251611f9a8b5aea43fbad8bba28737f0f3024703aa9d1d343c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7468616e747a696e2d736f652f6c61726176656c2d7265706f7369746f72792d67656e657261746f722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/thantzin-soe/laravel-repository-generator)[![GitHub Tests Action Status](https://camo.githubusercontent.com/8bbdaa0f359c2cde080f8db21438837a67d2caa9f30314f7c38c3f7a6fd29aed/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f7468616e747a696e2d736f652f6c61726176656c2d7265706f7369746f72792d67656e657261746f722f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/thantzin-soe/laravel-repository-generator/actions?query=workflow%3Arun-tests+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/79b0d5ca3fee2c45f492382f986ae1896716005be8b970efdfd6a98f93a4dda2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7468616e747a696e2d736f652f6c61726176656c2d7265706f7369746f72792d67656e657261746f722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/thantzin-soe/laravel-repository-generator)

You can generate laravel repository class and interface using **php artisan make:repository Category/CategoryRepository --model=Category**.It will generate CategoryRepository class and CategoryRepositoryInterface inside the *app/Repositories/Category* folder.This package is developed based on the [Spatie Laravel Package Skeleton](https://github.com/spatie/package-skeleton-laravel).

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

[](#installation)

You can install the package via composer:

```
composer require thantzin-soe/laravel-repository-generator
```

Usage
-----

[](#usage)

After installing via composer,you can generate scaffolding by running

```
php artisan make:repository Category/CategoryRepository --model=Category
```

You can add your bindings to your AppServiceProvider or you can a create a new service provider with `php artisan make:provider RepositoryServiceProvider`(don't forget to add it in the providers array inside of `config\app.php`) and add the bindings in the `register()` method, here is the example.

```
namespace App\Providers;

use Illuminate\Support\ServiceProvider;
use App\Repositories\Category\CategoryRepositoryInterface;
use App\Repositories\Category\CategoryRepository;

/**
* Class RepositoryServiceProvider
* @package App\Providers
*/
class RepositoryServiceProvider extends ServiceProvider
{
   /**
 * Register services.
 *
 * @return void
 */
   public function register()
   {
       $this->app->bind(CategoryRepositoryInterface::class, CategoryRepository::class);
   }
}
```

Testing
-------

[](#testing)

```
composer test
```

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

[](#contributing)

Any contributions are welcome.

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

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

1086d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/39611545?v=4)[Thantzin soe](/maintainers/thantzin-soe)[@thantzin-soe](https://github.com/thantzin-soe)

---

Top Contributors

[![thantzin-soe](https://avatars.githubusercontent.com/u/39611545?v=4)](https://github.com/thantzin-soe "thantzin-soe (4 commits)")

---

Tags

laravellaravel repository generatorthantzin-soe

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/thantzin-soe-laravel-repository-generator/health.svg)

```
[![Health](https://phpackages.com/badges/thantzin-soe-laravel-repository-generator/health.svg)](https://phpackages.com/packages/thantzin-soe-laravel-repository-generator)
```

###  Alternatives

[spatie/laravel-pdf

Create PDFs in Laravel apps

1.0k4.8M47](/packages/spatie-laravel-pdf)[codewithdennis/filament-select-tree

The multi-level select field enables you to make single selections from a predefined list of options that are organized into multiple levels or depths.

329530.5k29](/packages/codewithdennis-filament-select-tree)[worksome/exchange

Check Exchange Rates for any currency in Laravel.

124603.0k](/packages/worksome-exchange)[rawilk/profile-filament-plugin

Profile &amp; MFA starter kit for filament.

3914.6k](/packages/rawilk-profile-filament-plugin)[tarfin-labs/event-machine

Event-driven state machines for Laravel with event sourcing, type-safe context, and full audit trail.

199.4k](/packages/tarfin-labs-event-machine)[tapp/filament-form-builder

User facing form builder using Filament components

132.4k3](/packages/tapp-filament-form-builder)

PHPackages © 2026

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