dev-master
9999999-dev https://github.com/andela-cijeomah/simpleormA simple agnostic php ORM
MIT
The Requires
- php >=5.5.9
- vlucas/phpdotenv ^2.0
The Development Requires
orm database sql php persistence
A simple agnostic php ORM
A simple lightweight php Object Relational Mapper(ORM) done according to the The PHP League way, (*2)
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();
$user = User::find($id);
$user = User::find($id); $user->password = "passwordagain"; $user->username = "helloandela"; $user->save();
$result = User::destroy($id):
``````` $user = User::where('username', 'john'); ``````, (*5)
Please refer to CHANGELOG file for information on what has changed recently., (*6)
Please check out CONTRIBUTING file for detailed contribution guidelines., (*7)
Simple ORM is maintained by Chidozie Ijeomah., (*8)
Simple ORM is released under the MIT Licence. See the bundled LICENSE file for details., (*9)
A simple agnostic php ORM
MIT
orm database sql php persistence