PHPackages                             sagarv1997/rp-velocity - 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. sagarv1997/rp-velocity

ActiveLibrary

sagarv1997/rp-velocity
======================

Laravel Console Command to easily create Repository Pattern in Laravel Project

1.0.0(4y ago)252MITPHP

Since May 25Pushed 4y ago1 watchersCompare

[ Source](https://github.com/sagarv1997/laravel-rp-velocity)[ Packagist](https://packagist.org/packages/sagarv1997/rp-velocity)[ RSS](/packages/sagarv1997-rp-velocity/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

RpVelocity
==========

[](#rpvelocity)

RpVelocity Package has Laravel Console command which help in creating a standard repository pattern in Laravel Project.

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

[](#installation)

Use the Composer [composer](https://packagist.org/packages/sagarv1997/rp-velocity) to install RpVelocity.

```
composer require sagarv1997/rp-velocity
```

Features
--------

[](#features)

It helps in generating all the following classes for Repository Pattern Implementation

- Model
- Interface
- Implementation
- ServiceProvider

Configuration
-------------

[](#configuration)

To let our application know which implementation of which interface we want to use, we need to create a Laravel service provider. Use the following command to create the provider.

```
php artisan make:repository-provider RepositoryServiceProvider
```

The last step is to register this service provider in the config/app.php. Open config/app.php file and add the newly created provider in the providers

#### Example

[](#example)

```
'providers' => [
    ...
    App\Providers\RepositoryServiceProvider::class,
]
```

Usage
-----

[](#usage)

```
php artisan repository:generate ModelName
```

Once the files are generated you need to bind those files in the RepositoryServiceProvider class which was generated in the Configuration step.

Add the bindings in the mapRepositoryProviders function.

#### Example

[](#example-1)

```
$this->app->bind(InterfaceName::class, RepositoryName::class);
```

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

[](#contributing)

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License
-------

[](#license)

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

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity51

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

1813d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5f2829d49ff0b7d0565d60b9963f4774058e9a1628fdd409f58061d357df7208?d=identicon)[sagarv1997](/maintainers/sagarv1997)

---

Top Contributors

[![sagarv1997](https://avatars.githubusercontent.com/u/13160994?v=4)](https://github.com/sagarv1997 "sagarv1997 (3 commits)")

### Embed Badge

![Health badge](/badges/sagarv1997-rp-velocity/health.svg)

```
[![Health](https://phpackages.com/badges/sagarv1997-rp-velocity/health.svg)](https://phpackages.com/packages/sagarv1997-rp-velocity)
```

PHPackages © 2026

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