The Importance of Buiding Your Own PHP Framework!
Theres a ton of PHP frameworks out there that will do what you want and will get the job done. But do you really need all of these features? So is there a reason why you should build your own framework?
First of all, how big is your project? How many projects do you work on? How much functionally are you looking for?
Second of all, do you have enough time and knowledge to build your own framework?
The first step is listing a few features that you need:
- Basic XHTML document generation with the ability to add HTML titles, CSS, JavaScript, Icons etc.
- A global template(or multiple templates) that can changed from page to page or stay static throughout the whole site.
- Simple content placement, pages(determined by the URI)-would be loaded into the template.
- Quick database access.
- Data Sensitization.
…and go from there.
I like using OOP(Object Orientated Programming) for my framework because it makes things so much easier.
It’s only as complicated as you make it. Just integrate the features that you need, keep it secure and keep tweaking it until it meets up to your personal standards.
The things that you should look for in any framework before it’s used in public:
- Freedom and flexibility
- Quality and performance
- Security
The ultimate goal for your framework should be to save time as well as to give yourself a little extra freedom. All you need to do is write up a plan and start coding:)
Oh, and you might find this site helpful from time to time: PHP.NET
Have Fun!
August 21, 2008 at 5:51 pm
[...] time It’s not a whole lot of fun(unless you have LOTS of time on your hands). You can make your own framework or you can download lots of excellent ones for [...]
June 19, 2009 at 12:13 am
[...] time:D It’s not a whole lot of fun(unless you have LOTS of time on your hands). You can make your own framework or you can download lots of excellent ones for [...]
August 26, 2009 at 1:10 am
I think this is a good idea when you want to practice your skills programming and understand the framework functionality