For saving models with repository pattern.
You can install this package via packagist.org with composer.
composer require systream/repository
composer.json:
"require": {
"systream/repository": "1.*"
}
This library requires php 5.6
or higher, but also works on php 5.4.