PHPackages                             interreposerv/inreser - 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. interreposerv/inreser

ActiveLibrary[Framework](/categories/framework)

interreposerv/inreser
=====================

A package for creating interface, repository, and service and other classes in Laravel

v2.1.0(11mo ago)232PHPPHP ^8.1

Since Oct 17Pushed 11mo ago1 watchersCompare

[ Source](https://github.com/Bilal-kassab/InterRepoServ-package)[ Packagist](https://packagist.org/packages/interreposerv/inreser)[ RSS](/packages/interreposerv-inreser/feed)WikiDiscussions main Synced 1mo ago

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

InterRepoServ/InreSer Package
=============================

[](#interreposervinreser-package)

( Interface/Repository/Service )A Laravel package to streamline the process of creating Interfaces, Repositories, Services, and DTOs (Data Transfer Objects) in a Laravel project. This package enables you to follow clean coding practices by using the Repository Pattern and Service Layer Pattern, promoting a modular and testable application structure.

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

[](#installation)

To install the package, run the following command:

> ### composer require interreposerv/inreser
>
> [](#composer-require-interreposervinreser)

Usage
-----

[](#usage)

### `1. Creating an Interface`

[](#1-creating-an-interface)

This command generates a new interface file under the app/Interfaces directory:

> ### php artisan make:interface YourInterfaceName
>
> [](#php-artisan-makeinterface-yourinterfacename)

Replace YourInterfaceName with the desired name of the interface. Interfaces define the structure of methods that implementing classes will use, providing consistency across your application.

### `2. Creating a Repository`

[](#2-creating-a-repository)

This command creates a repository class in the app/Repositories directory, optionally implementing a specific interface:

> ### php artisan make:repository YourRepositoryName
>
> [](#php-artisan-makerepository-yourrepositoryname)

To make the repository implement an interface, use the --interface option:

> ### php artisan make:repository YourRepositoryName --interface=YourInterfaceName
>
> [](#php-artisan-makerepository-yourrepositoryname---interfaceyourinterfacename)

Replace YourRepositoryName with the repository name and YourInterfaceName with the interface name. Using repositories separates data logic from controllers, making it easier to swap data sources without modifying the interface.

### `3. Creating a Service`

[](#3-creating-a-service)

To create a service class, run:

> ### php artisan make:service YourServiceName
>
> [](#php-artisan-makeservice-yourservicename)

This generates a new service class in the app/Services directory. Services encapsulate business logic and promote code reusability across different parts of your application.

### `4. Creating a DTO (Data Transfer Object)`

[](#4-creating-a-dto-data-transfer-object)

Data Transfer Objects (DTOs) help manage data structures by ensuring data integrity and keeping code organized. To create a DTO, use:

> ### php artisan make:dto YourDtoName
>
> [](#php-artisan-makedto-yourdtoname)

This command generates a DTO class in app/DTOs with predefined methods for transforming data to and from arrays.

### `5. Creating a Trait`

[](#5-creating-a-trait)

Traits allow you to share methods across multiple classes without using inheritance. To generate a new trait in your Laravel project, run:

> ### php artisan make:trait YourTraitName
>
> [](#php-artisan-maketrait-yourtraitname)

This command creates a new trait in the app/Traits directory.

Additional Information
======================

[](#additional-information)

This package automatically registers these artisan commands, allowing for easy generation of Interfaces, Repositories, Services, and DTOs with a consistent structure across your Laravel application.

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance51

Moderate activity, may be stable

Popularity10

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

Every ~76 days

Total

4

Last Release

342d ago

Major Versions

v1.1.0 → v2.0.02025-03-18

### Community

Maintainers

![](https://www.gravatar.com/avatar/bc967a01e820f30206b12e113869201e2110ba52c1ceec301c1072ced21bac8b?d=identicon)[Bilal-kassab](/maintainers/Bilal-kassab)

---

Top Contributors

[![Bilal-kassab](https://avatars.githubusercontent.com/u/147449778?v=4)](https://github.com/Bilal-kassab "Bilal-kassab (20 commits)")

### Embed Badge

![Health badge](/badges/interreposerv-inreser/health.svg)

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

###  Alternatives

[laravel/socialite

Laravel wrapper around OAuth 1 &amp; OAuth 2 libraries.

5.7k96.9M672](/packages/laravel-socialite)[laravel/horizon

Dashboard and code-driven configuration for Laravel queues.

4.2k84.2M224](/packages/laravel-horizon)[laravel/ui

Laravel UI utilities and presets.

2.7k134.9M597](/packages/laravel-ui)[laravel/jetstream

Tailwind scaffolding for the Laravel framework.

4.1k19.8M136](/packages/laravel-jetstream)[stancl/tenancy

Automatic multi-tenancy for your Laravel application.

4.3k6.6M40](/packages/stancl-tenancy)[internachi/modular

Modularize your Laravel apps

1.1k662.4k8](/packages/internachi-modular)

PHPackages © 2026

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