PHPackages                             techrays-labs/laravel-service-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. [Framework](/categories/framework)
4. /
5. techrays-labs/laravel-service-repository-generator

ActiveLibrary[Framework](/categories/framework)

techrays-labs/laravel-service-repository-generator
==================================================

A powerful and flexible Laravel package that simplifies the implementation of the Service-Repository design pattern. Generate Service and Repository classes with ease, customize their namespace and path, and streamline your application's architecture.

v1.0.0(1y ago)01.6kMITPHPPHP &gt;=8.0

Since Feb 6Pushed 1y agoCompare

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

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

Laravel Service &amp; Repository Generator
==========================================

[](#laravel-service--repository-generator)

A powerful and flexible Laravel package that simplifies the implementation of the Service-Repository design pattern. Generate Service and Repository classes with ease, customize their namespace and path, and streamline your application's architecture. Perfect for developers who follow clean code principles and want a structured approach to business logic and data handling in Laravel applications.

[![Laravel Version](https://camo.githubusercontent.com/201c54a0cfc66e89f8fc461c5b4beeeed067ea33704e40a3b11505aa3175ae44/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c61726176656c2d3825323025374325323039253230253743253230313025323025374325323031312532302d626c75652e7376673f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/201c54a0cfc66e89f8fc461c5b4beeeed067ea33704e40a3b11505aa3175ae44/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c61726176656c2d3825323025374325323039253230253743253230313025323025374325323031312532302d626c75652e7376673f7374796c653d666c61742d737175617265)
[![License](https://camo.githubusercontent.com/6c711032aff1ca0eb6b211aa6cb3649ce7fd64a7714e1181d4bb457f9680e7cf/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d677265656e2e7376673f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/6c711032aff1ca0eb6b211aa6cb3649ce7fd64a7714e1181d4bb457f9680e7cf/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d677265656e2e7376673f7374796c653d666c61742d737175617265)

Features
--------

[](#features)

- Generate **Service &amp; Repository** classes automatically
- Supports **custom namespaces &amp; paths**
- Option to generate a **Repository Interface**
- **Automatic binding** in `AppServiceProvider`
- Uses **stub files** for customization
- **Publishable configuration file**
- Compatible with **Laravel 8, 9, and 10**

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

[](#installation)

Install via **Composer**

```
composer require techrays-labs/laravel-service-repository-generator

```

Publish the configuration file

```

php artisan vendor:publish --tag=service-repository-config

```

Publish the stub files (optional)

```

php artisan vendor:publish --tag=service-repository-stubs

```

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

[](#configuration)

The package allows you to define default namespaces and paths in `config/service-repository.php`

```
