architecture

  • A front controller is one entry point and a router

    An application with a PHP file per page has its bootstrap copied into every one of them — session start, config include, database connection, the auth check somebody…

  • Swapping Apache and mod_php for nginx and PHP-FPM

    512 MB, 150 concurrent visitors, and a box that swaps before the CPU is busy. Replacing Apache and mod_php with nginx and PHP-FPM, in three stages that each…

  • Introducing Composer to a CodeIgniter application

    Four unversioned libraries in application/libraries, two of them edited in place. Moving the application onto Composer and PSR-0 without giving up the framework’s own loader.