fudyartanto / c5orm
Concrete5 ORM package.
1.0.2
2017-06-29 23:26 UTC
Requires
- php: >=5.4
Requires (Dev)
- phpunit/phpunit: 5.2.*
This package is not auto-updated.
Last update: 2026-03-09 13:42:49 UTC
README
C5orm is an object-relational mapping (ORM) for concrete5 cms. C5orm is inspired by eloquent, so most of c5orm syntax is pretty similar with eloquent syntax.
Usage Instructions
composer require "fudyartanto/c5orm"
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)
Documentation
The documentation is included in this repo in the root directory, and publicly available at https://fudyartanto.github.io/c5orm/. The documentation may also be run locally.