Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: about 2 months ago
JSON representation
Repository Pattern implementation for Laravel
- Host: GitHub
- URL: https://github.com/mawuva/laravel-repository
- Owner: mawuva
- License: mit
- Created: 2021-11-14T23:00:20.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-04-22T15:44:31.000Z (over 2 years ago)
- Last Synced: 2024-08-18T15:42:11.955Z (4 months ago)
- Topics: laravel, laravel-package, laravel-repository, laravel-repository-pattern, laravelpackage, repository, repository-pattern
- Language: PHP
- Homepage: https://packagist.org/packages/mawuekom/laravel-repository
- Size: 31.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
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.