Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/znck/plug

A collection of pluggable traits for Eloquent (Laravel) models
https://github.com/znck/plug

database eloquent laravel plug

Last synced: 2 months ago
JSON representation

A collection of pluggable traits for Eloquent (Laravel) models

Awesome Lists containing this project

README

        

Plug
====
A collection of pluggable [Eloquent](https://laravel.com/docs/master/eloquent) traits to enhance your Models.

![Plug](cover.png)



StyleCI Status


Build Status


Coverage Status


Software License


Packagist


Latest Version


Issues

## Installation

Either [PHP](https://php.net) 7.0+ is required.

To get the latest version of Plug, simply require the project using [Composer](https://getcomposer.org):

```bash
$ composer require znck/plug
```

Instead, you may of course manually update your require block and run `composer update` if you so choose:

```json
{
"require": {
"znck/plug": "^0.1"
}
}
```

Once Plug is installed, you can use the plug[gable] traits.

## Usage
All features of Plug are provided as traits, so you can directly put them in you model class. Traits would automatically boot. No configuration is required.
```php