PHPackages                             cals/rsp - 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. cals/rsp

ActiveLibrary

cals/rsp
========

RSP Architecture for Laravel

v2.0.6(7y ago)041MITPHPPHP &gt;=7.0.0

Since Apr 20Pushed 7y ago1 watchersCompare

[ Source](https://github.com/Su9Tail/rsp)[ Packagist](https://packagist.org/packages/cals/rsp)[ RSS](/packages/cals-rsp/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (6)Dependencies (1)Versions (9)Used By (0)

RSP
===

[](#rsp)

About RSP
---------

[](#about-rsp)

RSP is a web application library used to make things easier while you building a plain Laravel application. Besides, it provides some efficient commands to let you free while you're coding.

RSP is short for **Repository Service and Presenter**.

How to use
----------

[](#how-to-use)

### Installation

[](#installation)

You can run `composer require cals/rsp` to install RSP from [Packagist](https://packagist.org/packages/cals/rsp).

Or, you can add `"cals/rsp": "~2.0"` to your `composer.json` and then run `composer update` in your terminal to install it.

### Configuration

[](#configuration)

After you install the RSP, you should put `Cals\RSP\RSPServiceProvider::class` in your `config/app.php` providers array to make it work.

> If you use Laravel 5.5 and after, you don't need do it cause laravel will auto load the provider.

Then you should run `php artisan vendor:publish --tag=rsp` to publish `rsp.php`.

### Usage

[](#usage)

#### Repository

[](#repository)

You can use `make:repository` to create a repository and its' interface, or you can create them manually if you want to. Remember that the repository should extends `Cals\RSP\Repositories\Implementations\Repository`if you create it manually.

The repository is like below:

```
