Hi,
I've developed for our PHP projects a little
object persistence library.
Tha main goal of the library is to speed up
the management of the data stored in a db.
It is based on the concept of the "storage".
The storage is a "box" where to make the objects persistent.
It can be everything : a db, a file, ...
At now storage for MySQL and Oracle are implemented and
tested both on windows and Linux platforms.
The library is very small and simple : 5 classes at now.
I'm considering to release it on an ppen source
license (BSD license), but before of that
I would like to know the opinion of others developers (you),
and possibility that someone is interested to collaborate
Eventually I can open a source Forge project.
The framework is also database indipendent, but
I think it is more elegant and light of ADODB or Metabase.
Adding other database storages, like PostgreSQL or FireBird
is very easy.
Tanto per darvi una vaga idea di come si utilizza
il framework vi allego qualche stralcio di codice di esempio :
To give you an idea as the framework works,
here is a snippet of code :
===
$storage = new it_st_orm_MySQLStorage();
$storage->setServer('localhost');
$storage->setUsername('speedtech');
$storage->setPassword('speedtech');
$storage->setName('0_3_st_orm');
$storage->open();
$aCategory = new Category();
$aCategory->setAttribute('title', 'Category 1');
$storage->saveObject($aCategory);
$numOfCategories = $storage->countObject('Category');
echo "\n";
echo 'Categories found : ' . $numOfCategories . "\n";
$category1 = $storage->fetchObjectByAttribute('Category', 'title',
'category 1');
$books = $storage->fetchObjectList('Book', 'title');
===
If someone is interested, contact me and I'll send
to him/her the current version by email or make
available an archive through aour website.
Ciao!
--
SpeedTech
Email : roberto_dot_gerola_at_speedtech_dot_it
WWW : http://www.speedtech.it