fudyartanto / c5orm
Concrete5 ORM package.
Installs: 40
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 1
Forks: 0
Open Issues: 0
Type:project
Requires
- php: >=5.4
Requires (Dev)
- phpunit/phpunit: 5.2.*
This package is not auto-updated.
Last update: 2025-05-05 09:50:44 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.