Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 23 lines (18 sloc) 0.955 kb
c2cea5a Jakub Vrána Readme
authored
1 NotORM - http://www.notorm.com/
2
c88bb19 Jakub Vrána Comment
authored
3 NotORM is a PHP library for simple working with data in the database. The most interesting feature is a very easy work with table relationships. The overall performance is also very important and NotORM can actually run faster than a native driver.
c2cea5a Jakub Vrána Readme
authored
4
5 Requirements:
6 PHP 5.1+
14ff197 Jakub Vrána Oracle support
authored
7 any database supported by PDO (tested with MySQL, SQLite, PostgreSQL, MS SQL, Oracle)
c2cea5a Jakub Vrána Readme
authored
8
9 Usage:
10 <?php
11 include "NotORM.php";
14ff197 Jakub Vrána Oracle support
authored
12 $connection = new PDO("mysql:dbname=software");
13 $software = new NotORM($connection);
c2cea5a Jakub Vrána Readme
authored
14
f4fc1a7 Comments
unknown authored
15 foreach ($software->application()->order("title") as $application) { // get all applications ordered by title
16 echo "$application[title]\n"; // print application title
17 echo $application->author["name"] . "\n"; // print name of the application author
c2cea5a Jakub Vrána Readme
authored
18 foreach ($application->application_tag() as $application_tag) { // get all tags of $application
19 echo $application_tag->tag["name"] . "\n"; // print the tag name
20 }
21 }
22 ?>
Something went wrong with that request. Please try again.