Debug PHP-cli scripts with Xdebug and Sublime Text 2

In my previous post, I explained how I’ve set up debugging PHP scripts with Xdebug and Sublime Text  2 in a web based environment. In this part, I’ll outline how I debug PHP command line scripts. If you want to follow this guide, make sure you have everything setup as explained in the previous post.… Continue reading Debug PHP-cli scripts with Xdebug and Sublime Text 2

CodeIgniter for PHP CodeSniffer gets better

Just a quick note, my PHP CodeSniffer standard for CodeIgniter improves gradually, since I originally mentioned it a month ago, the following improvements have been made to the repo: Improved indentation checks in switch statements, works with tabs now Correct file and class naming when creating libraries (CodeIgniter expects capitalized file names for libraries) Support… Continue reading CodeIgniter for PHP CodeSniffer gets better

Debugging PHP with Sublime Text 2

In my early days of developing, I was heavily using Microsoft Visual Studio almost exclusively and say what you want about developing in the Microsoft ecosystem, but debugging Just Worked. In the Open source world of various iteration of LAMP stack, debugging is more of a challenge and honestly, just as many other developers working with… Continue reading Debugging PHP with Sublime Text 2

PHP CodeSniffer and CodeIgniter

I recently found out that Thomas Ernest have created a CodeIgniter standard for CodeSniffer. He mentioned on the CI formus that it’s not perfect and does spit out a few warnings and errors for things that are really OK in the CI style guide. False positives. This is the slightly modified welcome.php controller file I wanted to… Continue reading PHP CodeSniffer and CodeIgniter

Why I hesitate to agree with NoSQL

It’s not that I don’t understand the potential advantages with various NoSQL solutions. It’s not that I’m sitting here claiming that all my applications rely heavily on ACID compliance. It’s not even that I think that names like MongoDB sounds rather silly. No. Not at all. For now, it’s all about the fact that I… Continue reading Why I hesitate to agree with NoSQL