Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
PHP Archetype - a Rapid Development Framework
Old 07-02-2008, 08:29 PM PHP Archetype - a Rapid Development Framework
Ultra Talker

Posts: 366
Name: Steve
Location: Miami, FL, Earth
Trades: 0
I'm currently finishing the architecture of a PHP development framework I've been evolving over the last few years.

It is PHP 5, fully object oriented, and very lightweight.

It uses an MVC architecture, and allows the creation of object / data models with simple descriptors, which greatly reduces development time

It also auto-generates all SQL, so the user never has to touch the database.

Furtherore, it auto-generates HTML-output for objects or collections (iterators), either as forms, lists, tables, or custom user-defined views. I'm thinking about developing a templating system for this... possibly XSL-T based.

Each Archetype object can be retrieved as an XML node. Archetype collectiosn can be retrieved as node lists.

A session, get, post, or request collection can be passed to the Archetype object constructor to set its values.


Here are some examples of how an Archetype object would be used in a page:

PHP Code:

<?php
// Retrieve an object from the database
$myArchetype ArchetypeFactory::retrieveByPk(1);
?>

<?php
// Render the object as an HTML form
$transformer $myArchetype->getTransformer();
echo 
$transformer->render(ArchetypeTransformer::HTML_FORM);
?>

<?php
// Render selected fields of the object collection as an HTML table
$myArchetypes ArchetypeManager::retrieveAll();
$transformer $myArchetypes->getTransformer(array("field1""field2""field3"));
echo 
$transformer->render(ArchetypeTransformer::HTML_TABLE);
?>

<?php
// Retrieve form post and save to DB as a new record
$myArchetype = new Archetype($_POST);
ArchetypeFactory::save($myArchetype);
?>
My question is... does this sound like something useful to other web developers out there? I have a lot of work to do to advance the framework to become something that's really useful, and I want to gauge interest before investing that effort.

Thanks!
__________________
- Steve

President,
Please login or register to view this content. Registration is FREE

Last edited by smoseley; 07-02-2008 at 08:37 PM..
smoseley is offline
Reply With Quote
View Public Profile Visit smoseley's homepage!
 
 
Register now for full access!
Old 07-03-2008, 09:16 AM Re: PHP Archetype - a Rapid Development Framework
coldwind's Avatar
Novice Talker

Posts: 12
Name: Konstantin Leboev
Trades: 0
Have you seen (worked with) other frameworks, for example Zend Framework? What's the different?
__________________
P.S. Sorry for my bad English... +)
P.P.S. If you can't understand my English feel free to ask some questions or correct me.
coldwind is offline
Reply With Quote
View Public Profile
 
Old 07-03-2008, 01:59 PM Re: PHP Archetype - a Rapid Development Framework
Ultra Talker

Posts: 366
Name: Steve
Location: Miami, FL, Earth
Trades: 0
I've worked with Zend, as well as other non-PHP web dev frameworks. There are some significant differences between Archetype and Zend. For one thing, Zend is a very complete infrastructure, extending way beyond database, and providing (requiring use of) virtually all components of web development imaginable. As such, it's very complete, but also very "heavy".

Archetype would be to Zend as Hibernate is to Spring. It's only a rapid development tool, not a full web framework.

However, there are also some things that Archetype would do that Hibernate doesn't do (and, in fact, that Zend doesn't do). Native serialization and subsequent instantiation of objects to and from XML, Arrays, Database, Session, etc., would allow an Archetype object to be easily persisted or passed to other applications.

Furthermore, the intrinsic Transformer class is a really powerful tool that essentially separates presentation logic entirely from your application. In theory, transformers could be constructed entirely outside your application (possibly in XSL-T, though I haven't tested the performance of that with PHP yet) and very simply used to generate the front-end of your application, whether that be HTML, a Web Services API, EDI, or whatever.

I conceived the Archetype framework in response to a need for a simple, lightweight framework that would do all of the above. Every time I've built an app for a client, I've revised and evolved the platform, and now I finally feel ready to push it OS, but first I need to see how interested people would be in something like this.
__________________
- Steve

President,
Please login or register to view this content. Registration is FREE

Last edited by smoseley; 07-03-2008 at 02:02 PM..
smoseley is offline
Reply With Quote
View Public Profile Visit smoseley's homepage!
 
Reply     « Reply to PHP Archetype - a Rapid Development Framework
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.40533 seconds with 12 queries