Blog Posts

Category: CodeIngiter

Stripe API for Subscription

There are many payment gateways that provide subscription APIs for membership plans. One of them is Stripe, which is very easy to understand and implement. The APIs for plan creation, subscription and cancellation code in Stripe are as follows: Create a Plan Admin can create the plans with the name of a plan, interval and […]

How to Use Migrations in CodeIgniter 3

In CodeIgniter, migrations are used to create and maintain databases programmatically. Migrations are written in PHP code. The framework will translate the code into SQL statements. By default, migrations are disabled. You can enable/disable migrations from migration.php file located in application/config directory   Each Migration is run in numeric order forward or backward depending on […]