posts with the tag: framework

Posted by: bob on Friday October 7th 2011 no comments
Tags: development, evolution, framework, php

From explosm.net
from C&H explosm.net

For the past  year one of my side-not-so-side projects has been the zen\this Framework. Technically the project is even older than that. It was started because many years ago I wrote a Database library for MySQL that I really liked. It wrapped mysql/mysqli into what I consider a much more common and better interface. At the time it was designed to be portable to any codebase and handle things like injection protection without me or the other developers (who were at the time, interns) spacing about it. When I decided to write additional libraries the design challenge was to mimic the original design pattern of that database library.

The interface was quite simple. The main database class was a series of static functions, and there was a query object class too. This was before we had namespaces in PHP so the main database class was really just being used as a namespace. Configuration options were placed in a static array, database::$config, and most of the functions referenced that when deciding which database to query as it handled multiple connections.  This worked great as a completely stand alone library but after it evolved into the current edition in zen\this there have been some design issues.

Continue reading about the evolution of that database library…

Posted by: bob on Thursday March 10th 2011 no comments
Tags: dallasphp, framework, php

At the DallasPHP meeting this month I gave a presentation called “Building from the Ground Up, Can Has Framewerk?”, where I discussed a bit about what gives a code framework its structure, highlighted a few popular frameworks, and then discussed provisions you should think about when planning to build your own framework from scratch.

To my suprise, the presentation lasted just over an hour and had some good question/answer time afterwards. Unfortunately the camera we used to record the meeting uses a FAT file system (or something) and quit recording after the file hit 4GB, cutting off the last 20 minutes or so of the presentation.

Here are the slides and demonstration code I used for the presentation!