PHP – No Container libraries?
Most compiled languages that I have used have some kind of container implementation, Lists, Maps, Trees, Stacks and all their many variations. PHP has arrays and the SPL.
This post is more of a question than anything else, are there disadvantages that I can't see to having a standard container library for PHP? One problem that I can see is that containers built in user code will definitely be slower than a native implementation.
Am I overlooking something that already exists? Google fails me!
PHP Application Configuration with YAML
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.
Too busy to write!
I have recently been in the fortunate position of having more work than time. I sincerely apologize to my 1.9 unique visitors per week. I have re-evaluated my personal and work time and made hard decisions about what I can realistically accomplish in any one day.
Writing this blog is one thing I dont want to give up nor do I want to leave it in its neglected state. So beginning this week it became an official part of my workday and will be held to higher standards of quality and frequency of articles.
Those 1.9 unique visitors will at last have a reason to return.
When Pligg's Fly – Test flight
I was recently asked by a friend on a tight budget to help set up a small site similar to digg or some of the other social news and link aggregators. I thought it would be easy to find an open source project or three to choose from and adapt to their needs, but I only found one that was active and stable — Pligg. Since I am going to be working on this mini-project on and off for the next couple weeks I thought I would post my first impressions. By no means is this an exhaustive review just a quick overview after a couple hours.
Read more
Url Routing with PHP – Part Three
In the final part of this series, I will build a functional modular front controller that can be easily adapted to small projects. It is basically the "C" in MVC for a simple MVC framework. If you haven't read the first two articles I recommend that you read over them first. Url Routing with PHP – Part One and Url Routing with PHP – Part Two.
Read more
Url Routing with PHP – Part Two
This is the second part of a series, I assume you have read Url Routing with PHP – Part One as it covers the basics that I'll build on in Part Two.
Read more
Url Routing with PHP – Part One
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.
Read more
Yet another PHP framework
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 is to learn and share with my fellow PHP addicts. I intend to chronicle the project here on phpaddiction.com as part of an experimental development process. I haven't thought of a buzzword for this process yet but you know its coming! All egomaniacs who impose new frameworks on the world instead of working on an existing one must coin new buzzwords to help justify their pet project and I don't intend to be left out.
Oh and hopefully we all learn something too.