2017 © Pedro Peláez
 

library skema

ORM Data Modeling Platform

image

skema/skema

ORM Data Modeling Platform

  • Monday, June 22, 2015
  • by robertleeplummerjr
  • Repository
  • 2 Watchers
  • 1 Stars
  • 62 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

Skema

Data Modeling Platform, (*1)

Create database tables along with their data types, values, inputs, outputs, json, & relationship with other tables all polymorphically., (*2)

Create table, fields, and first record, (*3)

(new Set('Complete Address'))

    ->addField(new Field\Text('Name'))
    ->addField(new Field\StreetAddress('Address1'))
    ->addField(new Field\StreetAddress('Address2'))
    ->addField(new Field\City('City'))
    ->addField(new Field\Province('State'))
    ->addField(new Field\Country('Country'))
    ->addField(new Field\Zip('Zip'))

    ->addRecord([
        'name' => 'Township of Pelee',
        'address1' => '1045 WEST SHORE RD',
        'address2' => '',
        'city' => 'Pelee Island',
        'state' => 'ON',
        'country' => 'Canada',
        'zip' => 'N0R 1M0'
    ]);

Retrieve html inputs, (*4)

(new Set('Complete Address'))->eachHTMLInput(function($arrayOfInputs) {
    foreach ($arrayOfInputs as $input) {
        echo $input;
    }
});

Retrieve record and update, (*5)

$record = (new Set('Complete Address'))->getRecord(1);
$record->name = 'Former Township of Pelee';
$record->update();

Delete record, (*6)

(new Set('Complete Address'))->getRecord(1)->delete();

The Versions

22/06 2015

dev-master

9999999-dev http://visop-dev.com

ORM Data Modeling Platform

  Sources   Download

MIT

The Requires

 

22/06 2015
21/06 2015
14/05 2015