Skip to content

C5orm is an object-relational mapping (ORM) for Concrete5 cms.

License

Notifications You must be signed in to change notification settings

fudyartanto/c5orm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Concrete5 ORM

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.

About

C5orm is an object-relational mapping (ORM) for Concrete5 cms.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages