PHP code example of codexen / shadow

1. Go to this page and download the library: Download codexen/shadow 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/ */

    

codexen / shadow example snippets


$data = ['title' => 'Shadow Framework', 'description' => 'Framework for kapitans'];
Insert : Model::instance()->insert($data);
Update : Model::instance()->where('id', 1)->update($data);
Delete : Model::instance()->where('id', 1)->delete();
Select : Model::instance()->select('title', 'description')->orderBy('id', 'desc')->getAll();