2017 © Pedro Peláez
 

library model418

A library for a simple & explicit model couch

image

baddum/model418

A library for a simple & explicit model couch

  • Wednesday, March 4, 2015
  • by tzi
  • Repository
  • 0 Watchers
  • 2 Stars
  • 15 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 12 Open issues
  • 7 Versions
  • 0 % Grown

The README.md

Model418

Latest Stable Version Build Status Scrutinizer Code Quality Code Coverage Total Downloads License, (*1)

Model418 is a nice-to-use & highly flexible ORM.
It maps your data, from a database or another source, and its relationships into accessible objects.
It could be used with or without a framework., (*2)

  1. Features
  2. Let's code
  3. How to Install
  4. How to Contribute
  5. Author & Community

Features

For now, Model418 supports only the following storage:, (*3)

  • File System:
    • Encoding: in Yaml (default), JSON, Text or Markdown
    • Subfile: Write the data of an attribute in another file
    • Multi folders: Use multiple folders, like plugins folder
  • Session System

↑ top, (*4)

Let's code

// Save a new Model
$user = (new UserModel)
    ->set('firstName', 'John')
    ->save();

// Retrieve all models
$userList = (new UserModel)->query()->fetchAll();
count($userList) // 1 

// Retrieve by primary key
$john = (new UserModel)->query()->fetchById(1);

// Update an existing Model
$john->set('lastName', 'Doe')
    ->save();

// Delete an existing Model
$john->delete();

To go further, you should read the complete documentation., (*5)

↑ top, (*6)

How to Install

This library package requires PHP 5.4 or later.
Install Composer and run the following command to get the latest version:, (*7)

composer require baddum/model418:1.2.*

↑ top, (*8)

How to Contribute

Get involved

  1. Star the project!
  2. Report a bug that you find
  3. Tweet and blog about Model418 and Let me know about it.

Pull Requests

Pull requests are highly appreciated.
Please review the guidelines for contributing to go further., (*9)

↑ top, (*10)

Author & Community

Model418 is under MIT License.
It was created & is maintained by Thomas ZILLIOX., (*11)

The Versions

04/03 2015

1.x-dev

1.9999999.9999999.9999999-dev https://github.com/Baddum/Model418

A library for a simple & explicit model couch

  Sources   Download

MIT

The Requires

 

The Development Requires

model

12/02 2015
19/11 2014

v1.1.2

1.1.2.0 https://github.com/Elephant418/Model418

A library for a simple & explicit model couch

  Sources   Download

MIT

The Requires

 

The Development Requires

model

18/11 2014

v1.1.1

1.1.1.0 https://github.com/Elephant418/Model418

A library for a simple & explicit model couch

  Sources   Download

MIT

The Requires

 

The Development Requires

model

18/11 2014

v1.1

1.1.0.0 https://github.com/Elephant418/Model418

A library for a simple & explicit model couch

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

model

10/11 2014

v1.0.0

1.0.0.0 https://github.com/Elephant418/Model418

A library for a simple & explicit model couch

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

model