Framework for creating models custom classes / object in Concrete5
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


A Generic Object Framework for Concrete5


Firstly, some thanks and credit

Rebar aims to reduce the development time required to implement custom objects when developing using Concrete5. As a boiler-plate framework, there are no auto-magical "scaffold myModel" commands. You still need to implement (i.e. code) all your Models, Views and Controllers yourself.


Late Static Binding Models (LSB)

In a nutshell, LSB means that you can set values of static properties in a child class, and then access their values inside the parent.

In practice, that means RebarModels are more flexible. Rather than relying on a naming convention or pattern, you explicitly set the name of the table and primary key column in your model class.

See details at

###Attributed Models Rebar fully supports the Concrete5 Attribute/Value system. You can easily add any of the default Attribute types (or roll your own) to your models. This means it's very quick to add drop-down lists of options, addresses etc.

###Validation Rebar uses a fork of the validation library from the Kohana Framework. It supports automatic validation of Model properites via data table Meta Data. Validation can easily be extended to include custom logic and the processing of attributes.


  • RebarModel is built around Late Static Bindings. This means PHP5.3+ - ideally 5.4+ for performance gains
  • Some of the Controller standards are based on the current version of Concrete5 - so that means 5.5+


Rebar is in active development. Whilst I am using it in production, others should do so with caution


  • DisplayTable needs to support sorting / ordering of columns via post-back to ItemList
  • ItemList->filterByKeywords() needs completing