PHP Technology: Understanding and Usage

I first started looking into the PHP framework last year, after looking at a variety of frameworks including cake, symfony and finally Zend Framework. When I got around to Zend Framework I was nearly ready to give up programming with a framework, as I didn’t have a clear understanding of the MVC style of programming. When I began looking into it though, I found, that this is something that once I got used to the different styles of coding, could save a valuable amount of time, and allow me to offer features to clients that previously just would not be cost effective. The main benefits of using a php framework are as follows:

Time saving – The amount of time saved by not having to type in a complex code in a lot of situations cuts the time of many projects, by over 50% in most cases.

Reuse of code – Many web sites that you develop have common features. Because of the way that each part of the code is separate, you are able to copy over controllers, models and view folders to the next project. An example of this is that in every project a CMS we are able to copy across the login system, something that used to be quite a time consuming process. Now we copy it across, add the users, and we are set to go.

Access to service API’s – with the way the web is moving these days, the ability to use twitter, Yahoo! and Google amongst others is a great way of expanding a web site with ease.

Community assistance – There is a large community out there which is always willing to help. When you are proficient with the framework, you can also assist others, which will also improve your coding experience. (Not to mention the warm fuzzy feeling that you get for helping)

Easy plugin creation – When you have a feature you want to add to the framework, just simply create a plugin, in a directory that you can copy to all your projects. I created an image resizing plugin, which allows me to upload an image and resize it with 3 lines of code. Unbelievable, when you consider how long this would usually take and the best thing is, once I made it, I have this feature available in all future projects.

The time saving benefits can be enormous. The language has been criticized because of its security flaws where as ASP is more secure language. The default of the language is the lack of easy understanding of error messages, robust configuration file, and the incomplete set of built-in functions. Development is a continuous phase and with time PHP will remove all its mild defects and come to be considered as one of the most successful languages for building websites.

View ratings
Rate this article

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>