PHP resources

I am a big fan of Codeigniter for webapps. It may not be the lightest of them all but for sure it packs a lot of great features and really made my life extremely easy.

I also strongly suggest using PhpStorm as your development IDE since it does come with a lot of features and it will make your life easy. It’s not free but if you are a programmer and, if you earn your living as such, it is for sure worth it.

Recent Posts in this category

  • Localization function in Twig with CodeIgniter
    CodeIgniter has a beautiful and simple Localization framework with each language in it’s folder and using aliases in views to get the localized version of a specific text. I will not go into details about this as I’m assuming you already have been using it for a while. For more details on it, please visit… Read more: Localization function in Twig with CodeIgniter
  • Securing PHP login with Fail2Ban
    Brute force attacks are a common issue for webapps. Combining Fail2Ban in Centos(Linux) and PHP logging can provide a powerful tool for temporarily or even permanently banning users from even reaching your server. This is an extreme measure but it is clean, simple and very effective. The article below requires the following perquisites: In this… Read more: Securing PHP login with Fail2Ban
  • Prevent CSRF attacks with CodeIgniter 4
    CSRF attacks are relatively common. They rely mainly on the user’s elevated permissions for a certain webapp and the hacker would thus attempt to get the user to perform a certain action on it’s behalf. To cut it short, it’s BAD! How the whole attack works is for sure not the scope of this article.… Read more: Prevent CSRF attacks with CodeIgniter 4
  • Redirecting to login in Codeigniter 4
    Codeigniter 4 has introduced a much easier way to redirect un-authenticated traffic on a website to a login page. It relies basically on a request filter mechanism which can perform an action “before” the initially intended action takes place. In simple terms, what this article aims to explain, is the process in which a visitor… Read more: Redirecting to login in Codeigniter 4
  • Twig integration with Codeigniter
    PHP templates for pages (aka views) have evolved in the last decade however, in the current MCV widely used project structure, Twig has provided a simplified, fast, secure and reliable solution to writing code. It has been my number one choice for a very long time. In this article: Why choose Twig over the default… Read more: Twig integration with Codeigniter