-
Notifications
You must be signed in to change notification settings - Fork 2
Salama - A PHP 5.3+ ORM
mixman/salama
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
PHPSalama - A PHP 5.3+ ORM ========================= Version 0.1 Salama is a PHP 5.3+ ORM built with a mission. Play to the strengths of PHP, offer convenient syntax, be fast and flexible. class User extends Model { var $name = 'type=CharField,maxLength=50' } $user = new User(); $user->name = "BobbyTables"; $user->save() $users = User::all(); for($users as $user) { echo $user->name; } $user = User::where(q::name('BobbyTables'))->limit(1); echo $user->name; Installation ============ require '/installation-path/salama/Salama.php'; $settings = array('config_dir'=>dirname(__FILE__).'/config'); Salama::bootstrap($settings); See tests/config for required configuration. Usage ===== See tests/queries/QueryTest.php for a primer until better documentation.
About
Salama - A PHP 5.3+ ORM
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published