PHPackages                             dataworkstr/revisionable - 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. dataworkstr/revisionable

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

dataworkstr/revisionable
========================

Nice and easy way to handle revisions of your MongoDB.

v5.3.9(9y ago)186MITPHPPHP &gt;=5.4

Since Dec 11Pushed 9y ago1 watchersCompare

[ Source](https://github.com/dataworkstr/revisionable)[ Packagist](https://packagist.org/packages/dataworkstr/revisionable)[ RSS](/packages/dataworkstr-revisionable/feed)WikiDiscussions 5.3 Synced 4w ago

READMEChangelog (10)Dependencies (9)Versions (40)Used By (0)

dataworkstr/Revisionable
========================

[](#dataworkstrrevisionable)

Nice and easy way to handle revisions of your MongoDB.

\*Lumen5 + MongoDB revisions \*Support Document Model

Requirements
------------

[](#requirements)

- This package requires PHP 5.4+
- MongoDB 3.0+
- Currently it works out of the box with Laravel5 + generic Illuminate Guard, tymon/jwt-auth OR cartalyst/sentry 2/sentinel 2

Usage (Laravel5 basic example - see Customization below as well)
----------------------------------------------------------------

[](#usage-laravel5-basic-example---see-customization-below-as-well)

### 1. Download the package or require in your `composer.json`:

[](#1-download-the-package-or-require-in-your-composerjson)

```
    "require": {

        // for Lumen5+ use:
        "dataworkstr/revisionable": "~1.0",
        ...
    },

```

### 2. Add the service provider to your `app/config/app.php`:

[](#2-add-the-service-provider-to-your-appconfigappphp)

```
    'providers' => array(

        ...

        'Sofa\Revisionable\Laravel\ServiceProvider',
    ),
```

### 3. Publish the package config file:

[](#3-publish-the-package-config-file)

```
~$ php artisan vendor:publish [--provider="Sofa\Revisionable\Laravel\ServiceProvider"]

```

this will create `config/sofa_revisionable.php` file, where you can adjust a few settings:

```
