PHP code example of fudyartanto / c5orm

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

    

fudyartanto / c5orm example snippets


use Fudyartanto\C5orm\Model;

class MyTable extends Model
{
    /**
     * The table associated with the model.
     *
     * @var string
     */
    protected static $table = 'MyTableName';
}

// Retrieve a model by its primary key
$mytable = MyTable::find(1)