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 1mo ago

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 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity52

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

1035d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6f729c352d84d468e939c7aef0ee577efcfeb6889ca498447a3a452bcde16fd0?d=identicon)[thantzin-soe](/maintainers/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-data

Create unified resources and data transfer objects

1.7k28.9M627](/packages/spatie-laravel-data)[spatie/laravel-livewire-wizard

Build wizards using Livewire

4061.0M4](/packages/spatie-laravel-livewire-wizard)[hirethunk/verbs

An event sourcing package that feels nice.

513162.9k6](/packages/hirethunk-verbs)[worksome/exchange

Check Exchange Rates for any currency in Laravel.

123544.7k](/packages/worksome-exchange)[ralphjsmit/livewire-urls

Get the previous and current url in Livewire.

82270.3k4](/packages/ralphjsmit-livewire-urls)[hydrat/filament-table-layout-toggle

Filament plugin adding a toggle button to tables, allowing user to switch between Grid and Table layouts.

6292.3k1](/packages/hydrat-filament-table-layout-toggle)

PHPackages © 2026

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