Archive for 'axial'

PHP Application Configuration with YAML

Posted by:

I have always disliked creating configuration data by reading from various formats into global arrays, so I needed to build or borrow a configuration class for my own projects that I could standardize on.

I wanted the following functionality.

  • Use the YAML format
  • Minimize load time by caching configuration data
  • Use object notation instead of array access notation.

I discovered various configuration classes but none of them quite had everything I was looking for so I put together the best code and ideas (for ...

Continue Reading ?
5

Url Routing with PHP – Part One

Posted by:

Most PHP frameworks use some variation of the front controller pattern to centralize common code and logic. There are advantages and disadvantages to this. I am going to ignore those for now. In fact the first part of this series will explore a simple procedural URL routing method that contains many of the disadvantages. In later articles we will build upon this basis and address the disadvantages.
Continue Reading ?

46

Yet another PHP framework

Posted by:

Call it NIH, re-inventing the wheel, narcissism, or any number of other terms that come to mind, but I’ve always wanted to write my own PHP framework. Simple time constraints usually stop this self destructive urge in its tracks, but I’ve decided that I’m tired of saying to myself “Framework PHPxyz would be great if only it had ABC.”. So it is time to Just Do It.

No matter how much this project screams ego, my real objective ...

Continue Reading ?
4