2017-25 © Pedro Peláez
 

orm orm

IcyMat Simple Object-Relational Mapping

image

icymat/orm

IcyMat Simple Object-Relational Mapping

  • Friday, June 29, 2018
  • by IcyMat
  • Repository
  • 1 Watchers
  • 0 Stars
  • 8 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 100 % Grown

The README.md

IcyMat ORM

Simple ORM mechanism created for my projects. For using this ORM you should use MySQL database., (*1)

Base entity

Each Entity class should extends \IcyMat\ORM\BaseEntity class. Each table at the database should contain integer and auto incremented id field. Example Entity class should looks like:, (*2)

<?php
class ExampleEntity extends \IcyMat\ORM\BaseEntity
{
    protected static $name = 'table_from_database';
    protected $fields = [
        'field_1',
        'field_2',
        'field_3'
    ];
}

Get and set data

Set data:, (*3)

<?php
$exampleEntity->set('field_2', $value);

Get data:, (*4)

<?php
$exampleEntity->get('field_2');

The Versions

29/06 2018

dev-master

9999999-dev http://icymat.pl

IcyMat Simple Object-Relational Mapping

  Sources   Download

MIT

The Requires

  • php ^5.5.9 || ^7.0

 

by Mateusz Kolasa

orm object-relational mapping

29/06 2018

1.0.1

1.0.1.0 http://icymat.pl

IcyMat Simple Object-Relational Mapping

  Sources   Download

MIT

The Requires

  • php ^5.5.9 || ^7.0

 

by Mateusz Kolasa

orm object-relational mapping

10/01 2018

1.0

1.0.0.0 http://icymat.pl

IcyMat Simple Object-Relational Mapping

  Sources   Download

MIT

The Requires

  • php ^5.5.9 || ^7.0

 

by Mateusz Kolasa

orm object-relational mapping