Re: PEAR Framework

From: Date: Thu, 08 Nov 2001 19:08:05 +0000
Subject: Re: PEAR Framework
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-2670@lists.php.net to get a copy of this message
> We are discussing about the best way to create a PHP code generator out of > database or XML tample. Smarty and other template systems are interesting, > but we need to go one step further. It involved many steps: You need to decide on an xml format for defining your schemas (in our case we chose a format which we could embellish with metadata, and generate simple schemas using xslt from those 'meta definitions) Then you need to build a set of base classes which can generate queries and manage data I/O (in our case we also allow advanced validation n the data i/o pipeline) Then you need to build a set of classes on top of that which can build forms, tables, etc based on your definitions - and have those classes properly hande errors and present them to the user. > I think Naoki's idea of PEAR framework is worth looking at. Porting Swing > to Php would be the cornerstone of such a project. Swing is Java GUI > component builder which makes building Java applications as easy as writing > VB code. It is widely spread and described everywhere on the Internet. Idisagree: the fact that PEAR is a set of libraries is precisely what makes it so attratcive. other people (me included) are building frameworks using PEAR tools. It would not benefit the community if PEAR suddenly became a framework. > KDevelop next release will be able to handle Php and Java. It is not long > before someone adds a Swing compatible GUI builder in KDevelop. If our API > is close to Swing, it ***might*** enable the development of WYSIWYG php > applications. You lost me. WYSIWYG only really appiles to presentation (think Dreamweaver) what about logic that handles all of your other application functions like input validation, etc? > Here is a summary of requirements: > > - abstract page builders (be able to split a page into panes, add standard > elements in panes, define SQL/XML data sources). The page structure should in binarycloud lingo, modules. one class per module. modules can be assembled in ordered sets so you can execute module initialization processes in a different order than you present them. panes are module groups in binarycloud lingo. we define our pages in xml, which is subsequently 'made' into native php so the system is fast. > be available under object-oriented structure (this is the meaning of > abstract builder). In a way, we are looking for a Swing abstraction level Done. > in Php. Event management should also be unified and managed in a class like > in Swing. Please note I am not looking for Swing absolutely. If we can Done. > build things out of existing objects, I will be happy with it. We're building them right now, probably 70% there. > - Possibility to load/save a page in XML content. Ability to load external > templates in panes and compile them. Not quite surer what you mean here. > - Code generator to build list/page views quickly. Have a look at PhpLens > which has such functions. The resulting code can be compiled and stored in > Zend cache. instead of a code generator to spit out fountains of code we use nice php native templates and base classes - which makes the dervitive code much more simple to manage. > Anyone working on such a project? Help and feedback needed. yes. I'm not trying to sell binarycloud on this list, we should have this discussion elsewhere unless everyone would like another long framework discussion :) have a look at binarycloud.tigris.org or binarycloud.com if you like, subscribe to the list : dev-subscribe@binarycloud.tigris.org. best all, and keep up the good work making _libraries_ ;) _alex

« previous php.pear.dev (#2670) next »