473,403 Members | 2,222 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 software developers and data experts.

PHP Object Relational Library (STORM)

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
Jul 17 '05 #1
1 2513
Hello,

On 04/14/2004 03:41 AM, Roberto Gerola wrote:
I've developed for our PHP projects a little
object persistence library.
This looks like the code that Metastorage generates:

http://www.meta-language.net/metastorage.html

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.


If you are looking for feedback, you may want to consider submitting to
the PHP Classes site as it will make possible to expose your work
imediately to many tens of thousands of users interest in Object
Oriented Programming in PHP.

http://www.phpclasses.org/
--

Regards,
Manuel Lemos

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/

PHP Reviews - Reviews of PHP books and other products
http://www.phpclasses.org/reviews/

Metastorage - Data object relational mapping layer generator
http://www.meta-language.net/metastorage.html
Jul 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

34
by: yensao | last post by:
Hi, I have a hard time to understand difference and similarities between Relational database model and the Object-Oriented model. Can somebody help me with this? Thank you in advance. ...
3
by: Mikey | last post by:
Hi all. In the process of trying to figure this thing out, I've been doing the old "stand around in the store and read as much as possible before you look like a derelict" thing. This time, with...
5
by: Markus Seibold | last post by:
Dear NG, I am working on a student project about a mobile tourism information system and among others I have to answer the question whether to use: - a relational database - a XML-native database...
2
by: object-relational persistence mapping | last post by:
Someone can tell me where I find a good Object-Relational Mapping library.
11
by: DrUg13 | last post by:
In java, this seems so easy. You need a new object Object test = new Object() gives me exactly what I want. could someone please help me understand the different ways to do the same thing in...
1
by: mirnazim | last post by:
Hi, I have to develop a web based information system for an educational institution. It is going to be a 100% OO code. Therefore I also need an Object Relational Mapper. I have not used any object...
18
by: D Witherspoon | last post by:
I am developing a Windows Forms application in VB.NET that will use .NET remoting to access the data tier classes. A very simple way I have come up with is by creating typed (.xsd) datasets. For...
3
by: Robert Abi Saab | last post by:
Hi everyone. I just finished a course on PostgreSQL and I found out that PostgreSQL doesn't provide any object relational features (as claimed in the official documentation), except table...
5
by: sh | last post by:
I am working on a database project, and I'm trying to think "objectively". Are there any tools that will map my "objects" to relational tables? I'd prefer a freebie, or something faily low-cost to...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.