Concrete5 ORM package.

Installs: 38

Dependents: 0

Suggesters: 0

Security: 0

Stars: 3

Watchers: 2

Forks: 0

Open Issues: 0

Type:project

1.0.2 2017-06-29 23:26 UTC

This package is not auto-updated.

Last update: 2024-05-06 05:07:38 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.