Codeigniter is not dead! And yes, Laravel is sexy!

Everywhere, everyone is saying CodeIgniter is dead! CodeIgniter is not dead so shut up!

That’s being said. Lately I have been exploring a lot of new things, new for me. I learnt composer. I have ported a library as a composer package which I use in my company. Learnt nodejs. And started exploring ExpressJS.

Then I bumped into Laravel. The sweet little thing that is gaining a lot of traction these days. and which is giving a lot of heat to CodeIgniter is dead argument. Well I beg to differ. CodeIgniter is not dead.

First of all let me tell you from my experience. CodeIgniter is a boon for those developers who want to dive into MVC and PHP Frameworks. CodeIgniter is dead simple to use. Install it and start using it right away. Laravel fans will argue that same goes for Laravel. But you see, for using Laravel properly, you need to know how to use Composer and some other little things.

The beauty of CodeIgniter lies in it’s simplicity. You don’t need to define routes for starters. unzip the code, create a new Controller and there you go.

No doubt Laravel is awesome. I liked Laravel too. I am going to ditch CodeIgniter pretty soon. but not because it is dead. But because, Laravel is built on top of good programming patterns and concepts. Dependency Injection is exactly how you should write your code. Every Class should only know what is happening inside it. Nothing more. You should be able to change dependencies on the fly. Move to other Database with one line change.

But still, there are a lot of apps I have built that are built using CI. And there are a lot of websites that are built on CI out there. There are millions of websites out where built on top of CI. So it’s not going anywhere. CodeIgniter will stay for a little longer.

Yes, CodeIgniter is not dead. But at the same time, Laravel is pretty sexy too!

I am a composer

Just a couple of minutes back, hours to be precise, I wrote my first Composer package.

For those, who don’t know what Composer is, It’s a dependency manager for PHP. Some like to call it a package manager. Thats wrong! It’s a dependency manager.

From past few months, I have been craving for new knowledge. So I started digging up Internet like I used to do earlier. I bumped into Laravel, newest thing happening in PHP world. I tend to stay away from new frameworks, libraries as much as I can. Why? because till the time they are mature enough I cant use them in my code – I write code for enterprises, so can’t fuck up there. I cant afford to.

But Laravel actually reminded me of important, useful actually,  it is to write good, clean and efficient code. Let me stop here. Ill save it for next post.

Anyways, One thing I quickly learnt that Laravel uses Composer heavily. Thanks to the docs, I installed Composer and was up and running in few minutes. You can do it in seconds it you have good Internet connection.

The geek inside me quickly woke up. Forget Laravel, what the heck is Composer and how to use it? – all I could hear inside my brain.

So I Googled. And found this and this tutorial. Oh, and THIS – main resource. I must say, Composer is going to save a lot of hassle if everyone starts using it. I mean, look around you. Everywhere you will find poorly written code. Because of a lot of reasons. One of which is there is no standard in PHP. PHP is a loosely typed language.

Anyways, What I ended up with is this: hello-composer. It’s on Composer’s repository too if you are feeling courteous.

After this, I quickly started working on a real composer package. First thing that popped into my mind was Facbeook SDK. I have been using it for all sorts of applications in my Company. I am working on it. Let’s see where it goes!

Oh yes, I am not sorry if you find this post all over the place. I am half asleep and it’s 3:30 in the morning. Damn, I should sleep.


So, I have started playing with PhoneGap at last. I find it a little funny though, how we developers/programmers can trick no-tech guys. I mean its just a web browser which is launched in full screen mode.

Anyways, PhoneGap is bloody easy to work on. If you are a good web developer, you can create and release an app in under two mins, Literally!

I have been monitoring PhoneGap since it’s inception. But stayed away because it was in beta. With version 3.0.0 they have labeled it stable. I beg to differ. It’s nowhere close to stable. Maybe that was too harsh. Actually, Its not that stable is the correct way of putting it. There are bugs:

First, I installed it on my MAC. Created an app. Changed config.xml to pick up icons that I created. I compiled it and installed it on my device and BAM! My icons were nowhere. PhoneGap didn’t pick up my icons. Instead, it installed default icons. Natural Instinct? I searched! And after a lot of searching I saw I wasn’t the only one facing this issue. As a good programmer, I wanted to log it as an issue, but someone else already did. So, it’s ok!

Second, I installed PhoneGap on my Ubuntu Machine. Created a new project. opened up the www folder and all I could see was index.html and a config.xml file. The file structure and files that PhoneGap builds is completely different on different OS. I didn’t try it on my windows machine though.

So far it’s the experience is okish. I can create apps, beautiful apps. All hail to HTML5 and CSS3. But it would be great if PhoneGap could keep the file structure similar on different OS. Otherwise, whats the point of being a cross-platform development framework.

I hope they fix these soon!

How Social is this URL?

At the place where I work, we do a lot of research about a brand before pitching an idea to them.

One of the key metrics that we present to our clients is the social reach of their products, websites etc. It’s a simple metric that tell you a lot about the health of a brand.

But lately, I noticed that whenever a person in our office had to get these numbers, he/she had to ask someone from tech team to get it for him/her. This is a time consuming process, plus it wastes a lot of time of my tech resources. Solution? Spend 1 hour to build a simple tool and save numerous hours that are wasted on digging up these numbers.

So I built this tool: Shared Count. Its a very simple tool that asks you for a URL and returns various social counts for it. Sure tools like these exists. Why I created this? Because, other tools don’t have a good UI. Mine has. At least it’s better in my view. Plus, I will have control over it. I can modify the code at will. Include/exclude features or supported websites.

I have released its code as open source. You can check it at Github. Fork it, Modify it.