Scheduling Unique Tasks with CodeIgniter

When you’re scheduling tasks in CodeIgniter 4, it’s not uncommon to run into issues where the same task gets triggered before the previous one finishes. This can cause anything from duplicate processing to race conditions and even server slowdowns. To help with that, CodeIgniter Tasks provides a built-in method called singleInstance(). ...

May 6, 2025 · 2 min

Chained Jobs with CodeIgniter Queue

Job queues help handle background tasks like sending emails, generating reports, or resizing images - keeping your application fast and responsive. But what if you need tasks to run in a specific order? That’s where chained jobs shine. ...

April 17, 2025 · 2 min

Edu Snake Game in Vanilla Javascript

I’ve recently developed a simple yet educational browser-based game called Edu Snake Game. Built with vanilla JavaScript and the Canvas API, this game adds a learning element to the classic Snake gameplay. ...

March 26, 2025 · 1 min

Effortless multi-language content translation in your models

Are you building a multi-language application with CodeIgniter 4? Managing translations for your models can be a daunting task, but CodeIgniter Translatable makes it easy and efficient. This lightweight library integrates seamlessly with CodeIgniter 4’s model system, allowing you to handle translations directly within your models. This library simplifies the process while maintaining the flexibility you need. Key Features Simple Setup: Use generator to prepare basic structure for migrations and models. Dynamic Locale Support: Automatically load translations based on the current locale. Custom Query Support: Retrieve translations efficiently with built-in methods. Integration with CodeIgniter Entities: Works smoothly with CodeIgniter’s entity system. Configuration Getting started with CodeIgniter Translatable is easy. Here’s a quick overview of how to use it: ...

December 29, 2024 · 2 min

Setting up OCI8 and Oracle XE with Docker on macOS

Integrating OCI8 with a PHP environment can be challenging, but recent updates have simplified the process significantly. Follow this guide to get everything set up seamlessly. Adding OCI8 support to PHP Oracle has streamlined the process for adding OCI8 support to PHP. Clear, user-friendly instructions are available in this Gist. Follow the steps outlined to prepare your PHP environment for OCI8. Setting up Oracle XE in Docker Once your PHP environment is ready, you can move on to Docker setup. We’ll use the Oracle XE image available on Docker Hub: gvenzl/oracle-xe. ...

December 23, 2024 · 1 min