PHP code example of monomelodies / dormant

1. Go to this page and download the library: Download monomelodies/dormant library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

monomelodies / dormant example snippets




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']));
    }
}