Tips for building my first API in CodeIgniter [closed] Tips for building my first API in CodeIgniter [closed] codeigniter codeigniter

Tips for building my first API in CodeIgniter [closed]


Of course it's up to you but I would really suggest using my libraries. The code has already been tried and tested by several large public web-apps and I recently added in key management, logging and request throttling.

Months of coding has gone into those libraries and they have been used to death, so it will be way easier that writing your own.

Just have a look through the code as you go so you understand how everything works. It's pretty flexible and getting more flexible as it goes.


When I decided that I was going to write an API, I was still in the early stages of learning CodeIgnitor so I didn't use it for developing the API. I think even now, I would probably still go the route of writing it all myself and not use a framework. This is mainly because I like to keep things as slim as possible and I feel that is more likely to happen without using a framework.

To get me started, I found this tutorial to be really helpful.