PHPackages                             shakib53626/laravel-repository-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. shakib53626/laravel-repository-maker

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

shakib53626/laravel-repository-maker
====================================

The shakib53626/laravel-repository-maker package provides a simple and efficient way to implement the Repository Design Pattern in Laravel projects. With a custom Artisan command (make:repository), developers can automatically generate repository classes with pre-defined methods like index, store, update, and delete. This tool is designed to enhance modularity, promote clean architecture, and save development time.

03PHP

Since Dec 14Pushed 1y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel Repository Maker
========================

[](#laravel-repository-maker)

[![License](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](LICENSE)

The **Laravel Repository Maker** package provides a simple and efficient way to implement the Repository Design Pattern in Laravel projects. With a custom Artisan command (`make:repository`), developers can automatically generate repository classes with pre-defined methods like `index`, `store`, `update`, and `delete`.

This tool is designed to enhance modularity, promote clean architecture, and save development time.

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

[](#installation)

You can install the package via Composer.

1. Run `composer require` to require the package: ```
    composer require shakib53626/laravel-repository-maker:dev-master
    ```

Usage
-----

[](#usage)

Once the package is installed, you can use the custom Artisan command to generate repository classes.

To generate a new repository, run:

```
php artisan make:repository TestRepository
```

This command will create a `UserRepository` class in the `app/Repositories` directory with default methods.

### Generated Repository Structure

[](#generated-repository-structure)

The generated repository class will include the following methods:

- `index()`: Logic for listing resources
- `store()`: Logic for storing a new resource
- `show()`: Logic for displaying a single resource
- `update()`: Logic for updating a resource
- `delete()`: Logic for soft-deleting a resource
- `trashList()`: Logic for listing trashed resources
- `restore()`: Logic for restoring a trashed resource
- `permanentDelete()`: Logic for permanently deleting a resource

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

[](#configuration)

This package doesn't require any configuration out of the box. However, you can customize the generated repository methods according to your needs.

License
-------

[](#license)

This package is licensed under the MIT License. See the [LICENSE](LICENSE) file for more information.

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

[](#contributing)

If you'd like to contribute to the package, feel free to fork the repository and submit a pull request.

1. Fork the repository.
2. Create a feature branch (`git checkout -b feature/your-feature`).
3. Commit your changes (`git commit -am 'Add new feature'`).
4. Push to the branch (`git push origin feature/your-feature`).
5. Create a new Pull Request.

Author
------

[](#author)

- **Shakibul Islam**
    Email:

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance31

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity16

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/498682fd0a8744eec1563e9a7188f71ea78da28fd18380476b5e48a18ef44723?d=identicon)[shakib53626](/maintainers/shakib53626)

---

Top Contributors

[![shakib53626](https://avatars.githubusercontent.com/u/107703379?v=4)](https://github.com/shakib53626 "shakib53626 (10 commits)")

### Embed Badge

![Health badge](/badges/shakib53626-laravel-repository-maker/health.svg)

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

###  Alternatives

[jpunanua/yii2-seotools

Component and module to manage unique seo title, description, keywords and unique text associated with a page

174.2k](/packages/jpunanua-yii2-seotools)

PHPackages © 2026

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