2017 © Pedro Peláez
 

library orm

A simple agnostic php ORM

image

bendozy/orm

A simple agnostic php ORM

  • Wednesday, October 21, 2015
  • by andela-cijeomah
  • Repository
  • 1 Watchers
  • 1 Stars
  • 48 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Build Status, (*1)

Simple ORM

A simple lightweight php Object Relational Mapper(ORM) done according to the The PHP League way, (*2)

Testing

The phpunit framework for testing is used to perform unit test on the classes. The TDD principle has been employed, (*3)

Run this on bash to execute the tests ```````bash /vendor/phpunit/phpunit/phpunit, (*4)


#Install - To install this package, PHP 5.5.9+ and Composer are required ````bash composer require bendozy/orm `````` #usage - Save a record in the database ```````` $user = new User(); $user->username = "Marcus"; $user->password = "password"; $user->email = "Marcus@andela.com"; $user->save();
  • Find a record
$user = User::find($id);
  • Update a record
$user = User::find($id);
$user->password = "passwordagain";
$user->username = "helloandela";
$user->save();

  • Delete a record -- returns a boolean
$result = User::destroy($id):
  • Find a record based on column value

``````` $user = User::where('username', 'john'); ``````, (*5)

Change log

Please refer to CHANGELOG file for information on what has changed recently., (*6)

Contributing

Please check out CONTRIBUTING file for detailed contribution guidelines., (*7)

Credits

Simple ORM is maintained by Chidozie Ijeomah., (*8)

License

Simple ORM is released under the MIT Licence. See the bundled LICENSE file for details., (*9)

The Versions

21/10 2015

dev-master

9999999-dev https://github.com/andela-cijeomah/simpleorm

A simple agnostic php ORM

  Sources   Download

MIT

The Requires

 

The Development Requires

orm database sql php persistence