PHPackages                             shlok/maker - 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. shlok/maker

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

shlok/maker
===========

This is a laravel repository generator.

0.0.1(5mo ago)02MITPHPPHP ^8.2

Since Nov 25Pushed 5mo agoCompare

[ Source](https://github.com/shlok-it/repository-maker)[ Packagist](https://packagist.org/packages/shlok/maker)[ RSS](/packages/shlok-maker/feed)WikiDiscussions main Synced 1mo ago

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

Laravel Repository Pattern
==========================

[](#laravel-repository-pattern)

[![GitHub issues](https://camo.githubusercontent.com/a8f93f6064c5dbf5397d90b518d6719f2303c456cfb5caae8a95ffc25fe83ba0/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f73686c6f6b2d612f6d616b65723f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/a8f93f6064c5dbf5397d90b518d6719f2303c456cfb5caae8a95ffc25fe83ba0/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f73686c6f6b2d612f6d616b65723f7374796c653d666c61742d737175617265)[![GitHub forks](https://camo.githubusercontent.com/a2652027c3c39e093f3a67c7f5b5e5adbeae00c377f2893f32812f06f8982910/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f666f726b732f73686c6f6b2d612f6d616b65723f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/a2652027c3c39e093f3a67c7f5b5e5adbeae00c377f2893f32812f06f8982910/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f666f726b732f73686c6f6b2d612f6d616b65723f7374796c653d666c61742d737175617265)[![GitHub stars](https://camo.githubusercontent.com/db89241a2f7f7318e4b37dceefcc340834faacd7c8d7a002bbe35111a6c66219/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f73686c6f6b2d612f6d616b65723f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/db89241a2f7f7318e4b37dceefcc340834faacd7c8d7a002bbe35111a6c66219/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f73686c6f6b2d612f6d616b65723f7374796c653d666c61742d737175617265)[![GitHub license](https://camo.githubusercontent.com/84a3ad8b2c4226fbf3ffd032f10aea9ab82dfee336e4543b0bb1b0014afdd844/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f73686c6f6b2d612f6d616b65723f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/84a3ad8b2c4226fbf3ffd032f10aea9ab82dfee336e4543b0bb1b0014afdd844/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f73686c6f6b2d612f6d616b65723f7374796c653d666c61742d737175617265)

🚀 Overview
----------

[](#-overview)

This repository offers a ready-to-use implementation of the Repository Pattern in Laravel. The repository pattern separates the logic that retrieves data from a model and allows for better flexibility and scalability when interacting with databases.

🌟 Requirements
--------------

[](#-requirements)

- **PHP** ^8.x
- **Laravel** ^8.x

✨ Suggestion
------------

[](#-suggestion)

- It's recommended to start with a fresh Laravel project when using this repository pattern template, but integration into existing projects is seamless as well.

📦 How To Install
----------------

[](#-how-to-install)

Install this package effortlessly using Composer:

```
composer require shlok/maker
```

🛠️ Features
-----------

[](#️-features)

- **Repository Pattern:** A clean, modular implementation of the Repository Pattern for abstracting database queries and data access.
- **Single Responsibility:** Keeps your controllers lightweight by moving database logic to repositories.
- **Service Layer Integration:** Easily integrate with a service layer for better logic handling.
- **Model/Models Creation:** You can create one or multiple models, along with their migrations and controllers, using a single command.
- **Repository/Repositories Creation:** You can create one or multiple repositories for multiple models using a single command. For instance, to create just a single repository.
- **Unit Testable:** The repository pattern makes your database interactions easier to test in isolation.

🚀 What Happens After Installing This Package?
---------------------------------------------

[](#-what-happens-after-installing-this-package)

- The `php artisan make:model` command has undergone a luxurious transformation, featuring an added repository pattern.

    - **Command Excellence:**```
        php artisan make:model ExampleModel -m
        ```

        ```
        php artisan make:model ExampleModel1 ExampleModel2 ExampleModel3 -m
        ```

        ```
        php artisan make:model ExampleModel -mc
        ```

        ```
        php artisan make:model ExampleModel1 ExampleModel2 ExampleModel3 -mc
        ```

        ```
        php artisan make:model ExampleModel -mcr
        ```

        ```
        php artisan make:model ExampleModel1 ExampleModel2 ExampleModel3 -mcr
        ```
- The `php artisan make:repository` command has undergone a luxurious transformation, featuring an added repository pattern.

    - **Command Excellence:**

        ```
        php artisan make:repository ExampleModel
        ```

        ```
        php artisan make:repository ExampleModel1 ExampleModel2 ExampleModel3
        ```

        Enjoy the ability to create a single model or multiple models at once, complete with migration/migrations. The system gracefully prompts you, inquiring if you wish to create a repository alongside the model.

Embark on your Laravel journey with the elegance and sophistication of Laravel Boiler Template! 🌟 Add stars, fork the project, and engage with the community. 🚀

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance70

Regular maintenance activity

Popularity2

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

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

175d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b029c5073f69f0cb079da6b938fbc7f0416a0a207bab03a5903bfbef3f4fb6f4?d=identicon)[shlokitsolutions](/maintainers/shlokitsolutions)

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/shlok-maker/health.svg)

```
[![Health](https://phpackages.com/badges/shlok-maker/health.svg)](https://phpackages.com/packages/shlok-maker)
```

###  Alternatives

[zakirullin/mess

Convenient array-related routine &amp; better type casting

21228.9k2](/packages/zakirullin-mess)[clarkwinkelmann/flarum-ext-emojionearea

Add EmojioneArea emoji picker to Flarum

2848.5k2](/packages/clarkwinkelmann-flarum-ext-emojionearea)[dcat-admin-extension/ueditor

百度在线编辑器

205.5k](/packages/dcat-admin-extension-ueditor)[shibuyakosuke/laravel-postalcode-japan

郵便番号データを取り込んで住所マスタを作成します。

105.2k](/packages/shibuyakosuke-laravel-postalcode-japan)

PHPackages © 2026

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