10 Principals of PHP Development

With PHP’s widespread adoption,it’s almost too easy to find a script or snippet to do exactly what you need. Unfortunately, there’s no filter as to what is a “good practice” and what’s, well… not so good when writing a PHP script. We need trustworthy sources, who have proven they have a solid grasp on the best practices of PHP.

Invest in PHP Caching

Speed up PHP Development with an IDE, Templates and Snippets

I find it a bit hard to support this. Yeah IDEs speed up development – a small bit. About Snippets – use them if you trust the source.

But if you really want to speed up development,

Use a framework(coming up later)

Invest in code generation.

Make Better Use of PHP’s Filter Functions

Joey Sochacki

This is actually new to me – but I am going to try this out.

Filtering data. We all have to do it. Most, if not all of us, despise doing it. However, unbeknown to most are PHP’s filter_* functions, that allow us to do all sorts of filtering and validation. Using PHP’s filter_* functions, we can validate and sanitize data types, URLs, e-mail addresses, IP addresses, strip bad characters, and more, all with relative ease.

Use a PHP Framework

Josh Sharp

This is one thing that really speed up development. Also, the programmers that have to maintain your programs will thank you for it.

Don’t use a PHP Framework

Use Batch Processing

Jack D. Herrington

This refers to the tasks that can processed in the background – Herrington recommends using batch processing and cron here. As most of you are aware, PHP don’t have threads – and it don’t matter to me. You don’t use threads when serving a web page. But in cases like these, threads come in handy.

My advice? Use Python or some other language that has threads to do do the job for you – you don’t have to do everything in PHP.

The advice I can give is to use a framework if your project is a medium or large project. For small projects, frameworks are not necessary. And for very large projects, it MIGHT be better to create your own framework for it.

yes…I agree with you if the project is big then it’s better to use framework….and I recommend using any available MVC framework of PHP like CakePHP, Zend Framework or CodeIgniter for reducing development time…