PHPackages                             znck/plug - 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. [Database &amp; ORM](/categories/database)
4. /
5. znck/plug

ActiveLibrary[Database &amp; ORM](/categories/database)

znck/plug
=========

Addons for Laravel Eloquent

v0.1.9(9y ago)131.5k1MITPHPPHP &gt;7.0

Since Mar 16Pushed 9y ago3 watchersCompare

[ Source](https://github.com/znck/plug)[ Packagist](https://packagist.org/packages/znck/plug)[ RSS](/packages/znck-plug/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (9)Dependencies (11)Versions (11)Used By (0)

Plug
====

[](#plug)

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

[![Plug](cover.png)](cover.png)

 [ ![StyleCI Status](https://camo.githubusercontent.com/90b777f833c6061b374d11ae8c6ba4e0f2b194ff413c034dfbcf1fabf51a3e3a/68747470733a2f2f7374796c6563692e696f2f7265706f732f35303730313539392f736869656c64) ](https://styleci.io/repos/50701599) [ ![Build Status](https://camo.githubusercontent.com/c0dd107a568401e09d936a665e6e8157af1f8c9ece87702034e6f4c3320e1216/68747470733a2f2f636972636c6563692e636f6d2f67682f7a6e636b2f706c75672e7376673f7374796c653d737667) ](https://circleci.com/gh/znck/plug) [ ![Coverage Status](https://camo.githubusercontent.com/4190772dfce1159e51bf813a1b847d8c34173431c73fd2ca5c7f029b99bbb7d8/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f7a6e636b2f706c75672f62616467652e7376673f6272616e63683d6d6173746572267374796c653d666c61742d737175617265) ](https://coveralls.io/github/znck/plug?branch=master) [ ![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265) ](LICENSE) [ ![Packagist](https://camo.githubusercontent.com/155040157e9ce7c50d9f68db26cf11e1038d1b8d94a1b5f61f5816b1f1b4645a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7a6e636b2f706c75672e7376673f7374796c653d666c61742d737175617265) ](https://packagist.org/packages/znck/plug) [ ![Latest Version](https://camo.githubusercontent.com/caee2e22544bb43365ccaba57cb52a2fde25828d856657a6d3670d000cca3d97/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f7a6e636b2f706c75672e7376673f7374796c653d666c61742d737175617265) ](https://github.com/znck/plug/releases) [ ![Issues](https://camo.githubusercontent.com/e9495b23716014e61c60a42f3133c423a584e9d17eb515254aaf2db6eff26ccd/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f7a6e636b2f706c75672e7376673f7374796c653d666c61742d737175617265) ](https://github.com/znck/plug/issues)

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

[](#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):

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

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

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

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

Usage
-----

[](#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.

```
