Month: December 2022

CodeIgniter Introduction & Basics Part 3 – Connecting to Database

Assumption This tutorial is for Mac machines although it can be similar to Windows most of the content is dedicated for Mac users. You already have installed MAMP app to use MySQL Server. Overview Step 1 – Create a Database Step 2 – Connect to Database Step 3 – Create a Table Step 4 – …

CodeIgniter Introduction & Basics Part 3 – Connecting to Database Read More »

CodeIgniter Introduction & Basics Part 2 – Create First Program

Create First Program Based on our previous activity, we have created a new Route and Function called aboutUs inside the Site Controller. Now, let’s try to run our server and see how our web app should look like. Type in; php spark serve Then, open our localhost in our browser. And add our new route …

CodeIgniter Introduction & Basics Part 2 – Create First Program Read More »

CodeIgniter Introduction & Basics Part 1 – Getting Started

Overview Introduction Installation Understand the Application Default Landing Page About PHP Spark CLI Introduction In this tutorial, we will be creating a REST API using CodeIgniter on our Mac machine. We will be using Composer to create our project. If you have not installed yet a composer, you can check my other blog “How to install composer …

CodeIgniter Introduction & Basics Part 1 – Getting Started Read More »

How to install composer on mac os

Step 1 – Copy the following commands php -r "copy(‘https://getcomposer.org/installer’, ‘composer-setup.php’);" php -r "if (hash_file(‘sha384’, ‘composer-setup.php’) === ’55ce33d7678c5a611085589f1f3ddf8b3c52d662cd01d4ba75c0ee0459970c2200a51f492d557530c71c15d8dba01eae’) { echo ‘Installer verified’; } else { echo ‘Installer corrupt’; unlink(‘composer-setup.php’); } echo PHP_EOL;" php composer-setup.php php -r "unlink(‘composer-setup.php’);" These commands will do the following; Download the installer to the current directory Verify the installer SHA-384, which you …

How to install composer on mac os Read More »