monomelodies / dormant
Dabble-based Ornament adapter
0.2.8
2016-03-20 11:03 UTC
Requires
- php: >=5.4
- monomelodies/dabble: ^1.5.2
- monomelodies/ornament: ^0.8.3
Requires (Dev)
- monomelodies/gentry: ^0.8.0
README
Dabble-based Ornament adapter
A simple Ornament adapter using the Dabble database abstraction.
Installation
Composer (recommended)
$ composer require monomelodies/dormant
Manual
- Download or clone the repo;
- Add '/path/to/dormant/src' as a classmap to
Dormant\\
in your PSR-4 config.
Usage
<?php use Ornament\Model; use Dormant\Adapter; class MyModel { use Model; public function __construct() { // Assuming $adapter is your Dabble adapter... $this->addAdapter(new Adapter($GLOBALS['adapter'])); } }