Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mawuva/laravel-repository

Repository Pattern implementation for Laravel
https://github.com/mawuva/laravel-repository

laravel laravel-package laravel-repository laravel-repository-pattern laravelpackage repository repository-pattern

Last synced: 7 days ago
JSON representation

Repository Pattern implementation for Laravel

Awesome Lists containing this project

README

        

# Repository Pattern implementation for Laravel

[![Latest Version on Packagist](https://img.shields.io/packagist/v/mawuekom/laravel-repository.svg?style=flat-square)](https://packagist.org/packages/mawuekom/laravel-repository)
[![Total Downloads](https://img.shields.io/packagist/dt/mawuekom/laravel-repository.svg?style=flat-square)](https://packagist.org/packages/mawuekom/laravel-repository)

This is a Simple Repository Pattern implementation for Laravel Projects and
an easily way to build Eloquent queries from API requests.

## Installation

You can install the package via composer:

```bash
composer require mawuekom/laravel-repository
```

## configuration

### Laravel

After register the service provider to the **`providers`** array in **`config/app.php`**

```php
'providers' =>
...
Mawuekom\Repository\RepositoryServiceProvider::class
...
];
```

Publish package config

```bash
php artisan vendor:publish --provider="Mawuekom\Repository\RepositoryServiceProvider"
```

### Lumen

Go to **`bootstrap/app.php`**, and add this in the specified key

```php
$app->register(Mawuekom\Repository\RepositoryServiceProvider::class);

```

## Usage

```php
// Coming soon
```

### Testing

```bash
composer test
```

### Changelog

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

## Contributing

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### **Hope this package will help you build awesome things**

## Report bug
Contact me on Twitter [@ephraimseddor](https://twitter.com/ephraimseddor)

## License

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.