dev-master
9999999-devPotato ORM is a simple agnostic ORM that can perform the basic crud database operations
MIT
The Requires
The Development Requires
by andela-fokosun
Potato ORM is a simple agnostic ORM that can perform the basic crud database operations
Potato ORM is a simple and very basic ORM that can perform the basic crud database operations., (*2)
Require via composer:, (*3)
composer require florence/potato
create a model, (*4)
class User extends Model { // add methods that are not available in parent class }
create a new instance of the model you created, (*5)
$user = new User();
add the respective column names and assign values, (*6)
$user->username = "johndoe"; $user->email = "john@doe.com"; $user->phone = "08067890986";
save, (*7)
$user->save();
fetch all users, (*8)
$user = User::getAll();
find one user, (*9)
$user = User::find(1);
delete one user, (*10)
$user = User::destroy(1);
update user record, (*11)
&user = User::find(3); $user->username = "Lindsay"; $user->email = "lindsay@africa.com"; $user->save();
Potato ORM is an open-source project and still pretty much work in progress. It does not handle table relationships as at this version and can only carry out simple crud operations. Please feel free to contribute to make this as awesome as it can get., (*12)
Happy Coding!, (*13)
Potato ORM is a simple agnostic ORM that can perform the basic crud database operations
MIT