PHPackages                             mzshovon/auto-repo - 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. mzshovon/auto-repo

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

mzshovon/auto-repo
==================

Single command repo generation for Laravel

1.0.7(1y ago)317MITPHPPHP &gt;=8.0

Since Oct 29Pushed 1y ago1 watchersCompare

[ Source](https://github.com/mzshovon/repo)[ Packagist](https://packagist.org/packages/mzshovon/auto-repo)[ RSS](/packages/mzshovon-auto-repo/feed)WikiDiscussions master Synced 1mo ago

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

Laravel Repo Generator
======================

[](#laravel-repo-generator)

Laravel single command repository pattern generator with automatic binding.

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

[](#installation)

You can install the package using composer:

```
composer require mzshovon/auto-repo
```

Register providers to your app config file.

```
Mzshovon\AutoRepo\RepositoryServiceProvider::class,
Mzshovon\AutoRepo\BindServiceProvider::class,
```

Great! Now your setup is done and you are ready to generate repository lifecycle in laravel via single command.

```
# For only generate interface with specific functions
php artisan generate:repo Test
```

Then it will ask for:

```
Do you want to bind model?
> yes # It will generate the model repo
```

If it is "no" Then it will ask for:

```
Do you want to bind service?
> yes # It will generate the service repo
```

Please make sure to cache the config after register providers.

```
php artisan config:cache
```

No need to bind! Just use your contract to access repository instances from anywhere.

License
-------

[](#license)

[MIT](https://choosealicense.com/licenses/mit/)

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance42

Moderate activity, may be stable

Popularity9

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

Every ~9 days

Recently: every ~19 days

Total

10

Last Release

478d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/befb2fb4fd7118fc67269f07b7f0c69f03db769df209d1ba58dacf7f1bb33d5e?d=identicon)[mohammad moniruzzaman](/maintainers/mohammad%20moniruzzaman)

---

Top Contributors

[![mzshovon](https://avatars.githubusercontent.com/u/46594039?v=4)](https://github.com/mzshovon "mzshovon (32 commits)")

---

Tags

laravelrepositorycontractrepo

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/mzshovon-auto-repo/health.svg)

```
[![Health](https://phpackages.com/badges/mzshovon-auto-repo/health.svg)](https://phpackages.com/packages/mzshovon-auto-repo)
```

###  Alternatives

[amin3520/anar

:description

272.3k](/packages/amin3520-anar)[mckenziearts/laravel-command

A simple Laravel package to provide artisan new commands

321.2k](/packages/mckenziearts-laravel-command)

PHPackages © 2026

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