Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Lightweight and easy to use PHP SQLITE3 ORM

License

NotificationsYou must be signed in to change notification settings

maertien/LiteORM

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lightweight, really simple and easy to use PHP ORM for SQLite3

License

GNU GPL version 2

Author

Martin Kumst -http://kumst.net

Howto use LiteORM

<?php// Load LiteORM classes as simple asrequire_once"../src/LiteORM.php";// Specify database filenamedefine("LITEORM_DB_FILE","./test.sqlite");// Create database structure as simple asclass Manextends LiteORMDataObject {}$man =newMan(array("age" =>20,"name" =>"Martin"));$man->createTable();// Insert object$man->save();// Get some property valueecho$man->get("age");// Modify and save object$man->set("age",22);$man->save();// For more examples please take a look at tests/test_sqlite.php file

[8]ページ先頭

©2009-2025 Movatter.jp