create classes for Entity and EntityField,
this version is not completed and not running.
As I decided to switch to laravel instead of CodeIgniter