
This lecture introduces the basics of CodeIgniter 4 api development, covering installation, controllers and views, database connections, migrations, and query builder, then adds basic and jwt authentication.
Install CodeIgniter 4 using composer or download, rename the env file to .env, set development mode for debugging, adjust permissions to 777, and start the built-in server with spark serve.
Explore configuring the default landing page by tracing the default route to the home controller index method and its view file.
Set up a CodeIgniter 4 project and start the development server. Create the about page with a static message, and configure routes to render the contact us view.
Create a database and connect it to the application by configuring hostname, database name, username, and password with the MySQL driver, using default and second connection groups and anticipating migration.
Learn how migrations in CodeIgniter 4 automate database schema changes by creating migration files, applying up and down methods, and tracking progress with migrate status and refresh commands.
Learn how to use the query builder in CodeIgniter 4 to perform insert, insert batch, update, delete, and select queries using a DB instance and table builder.
Explore how to use a model in CodeIgniter 4 to connect your app with the database, perform insert, update, delete, and select on the users table with mass assignment.
Learn how to create a seeder in CodeIgniter 4, generate dummy user data with the Faker library and a factory, and populate the users table via php spark db:seed.
Explore get, post, put, and delete request types and how to map them to controller methods and routes, including method spoofing.
Learn how route groups attach a common prefix to a set of API endpoints, then define create, list, delete, and update routes under a site controller to keep code neat.
Explore route namespaces and groups in CodeIgniter 4 to organize admin and user modules under dedicated folders, mapping namespaces to controllers and methods with group rules.
Learn how filters secure routes in CodeIgniter 4 by using before and after methods, checking login status, redirecting unauthenticated users, and registering filters with aliases for protected routes.
Kick off API development without authentication by setting up CodeIgniter 4, installing dependencies, and creating employee management endpoints—create, list, detail, update, and delete—via migrations.
Create a migration file to define an employee table with id (primary key, auto increment), name, email (unique), and profile image (nullable). Migrate to create the table and enable rollback.
Create a restful employee controller and a corresponding employee model in CodeIgniter 4, implementing create, list, detail, update, and delete APIs with database connectivity and mass assignment rules.
Learn to create api routes in CodeIgniter 4 using a route group and coordinator, defining endpoints for create, list, detail, update (spoofed post to put), and delete employee.
Create and save an employee data API in CodeIgniter 4 by validating form data, uploading an optional profile image to public/images, and saving to the employee model.
Test the create employee API in CodeIgniter 4 by sending post requests with name, email, and optional profile image, observing validation, and confirming database insert.
Create a data api endpoint that uses a get request to list all employees from the database, returning a 200 response with the employee data via the find all method.
Develop a single data api that retrieves a detailed employee record by id using a CodeIgniter 4 model, the find method, and a get request with appropriate responses.
Learn how to implement a robust update employee API in CodeIgniter 4, including form data validation, optional profile image upload, image renaming with timestamp, and updating records with proper responses.
Implement a delete data API using a delete request with an employee ID, verify existence via the employee model, delete when found, and return a 200 response.
Develop a phase of CodeIgniter 4 API development using basic authentication, implementing category and blog modules with migrations, and create, list, update, and delete endpoints secured by static credentials.
Install and configure the second phase of the development setup with the composer command, prepare the database, adjust the setup files, and start the local server to complete the installation.
Create migrations to build categories and blogs tables in CodeIgniter 4, defining id, name, and status with an enum 0/1 defaulting to 1, plus blogs with category_id, title, and content.
Explore creating a CodeIgniter 4 api controller with restful methods for create and list categories, and create, list, detail, update, and delete blogs using post, get, put, and delete requests.
Create models for category and blog tables and implement a basic authentication filter in CodeIgniter 4, wiring the Spark generated files and registering the filter to secure API requests.
Configure grouped api routes in CodeIgniter 4, using a namespace for api controllers, to create and list categories and blogs and manage single, update, and delete operations.
Learn how to create a category API in CodeIgniter 4, including name and status validation, category model insertion, and returning success or error responses.
Implement basic authentication in a CodeIgniter 4 API by using a before filter to decode base64 credentials from the authorization header, validate them, and deny access if invalid.
Create a list category API in CodeIgniter 4, returning all categories in JSON using the category model's find all method, secured by basic authentication with a base64-encoded header.
Create a blog API by validating category id, title, and optional content, verify category existence, and persist the new blog using the blog model, returning success or error messages.
Learn to build a list blogs api in CodeIgniter 4 using the query builder and inner join with categories to return id, category_id, title, content, and category name.
Fetch a single blog detail by its id using CodeIgniter 4's query builder, joining the blogs and categories tables to return the blog data with the category name.
Verify the blog exists, validate category id and title, and update blog details through the update blog api. Ensure category exists and test via postman with method spoofing to put.
Implement the delete blog API in CodeIgniter 4, validating blog existence before deletion and returning success or not found under basic authentication, with JWT in a future phase.
Explore building a CodeIgniter 4 API with JWT authentication, including user registration, login, and protected endpoints like user profile and books management, using migrations and a JWT package installation.
Set up a CodeIgniter 4 API project and install the JWT composer package to enable authentication. Understand JWT structure and encode/decode methods for secure tokens.
Create migrations to build the users and books tables in a CodeIgniter 4 project, defining id, name, email, password, and book title and price, then run the migrations.
Create a restful API in CodeIgniter 4 with controllers and models for users and books, enabling register, login, profile, and book create, list, and delete via JWT secured routes.
Create api routes under the api namespace, binding register, login, and profile endpoints to the api controller, and add book routes for create, list, and delete using appropriate http methods.
Create a register user API in codeigniter 4, validate name, email, and password with a unique email, hash the password, insert into the users table, and return success or error messages.
Learn how to build a user login api in CodeIgniter 4 using JWT authentication, including email and password validation, password verification, and token generation.
Learn to build a CodeIgniter 4 user profile API that accepts a JWT from the authorization header, decodes its payload, and handles token expiry and errors to fetch profile data.
Create a book API in CodeIgniter 4 with JWT authentication. Validate title and price, decode the token for user id, and insert the book using a reusable method.
Learn to build a list books API in CodeIgniter 4 using JWT authentication, decoding the token to fetch and return all books created by the authenticated user, with error handling.
Develop a delete book API using a delete request with book id and JWT authorization to verify ownership, delete the record, and return 200 or 404.
Learn how JWT authentication handles user logout without storing tokens, and how setting token expiration provides automatic destruction after a defined period in CodeIgniter 4 API development.
We will learn the complete idea to develop a CodeIgniter 4 RESTful APIs Development Using JWT Authentication. Basic Experience in CodeIgniter programming required like working of MVC. Learn practical skills of APIs Development in CodeIgniter 4 with mysql database driver.
This course is a step by step guide through the CodeIgniter 4 development with MySQL programming language. You will go from a beginner level to creating your own web services.
Basics of CodeIgniter 4.
Concept of Route, Controller, Migration, Seeders, Filters, Route Group & Namespace.
Complete concept of authentication types in CodeIgniter 4.
API Development without using authentication.
CodeIgniter 4 Basic authentication.
API development guide with live code session with jwt.
API development plans while creating application structure.
About JWT basics and its structure.
JWT API development tutorials.
API Error handling by using filters.
About Response & HTTP Code
Relationship in API development with JWT
Difference between API Development in Basic auth & JWT auth
API Development Configuration.
JWT package Installation with Complete detail.
Installation & Configuration of JWT in CodeIgniter 4 application.
About Filter and their use.
Process of API and their strategy to development.
Inside this whole tutorial you will cover too many things. After completing this whole course you will surely can handle api development in CodeIgniter 4 framework. This course and it's video by video plans will help you to build a confidence in yourself to move with api development in php framework.
This course is for every level. For beginners, it will be very perfect to enrol and learn development in very easy steps with detailed concept.
Few things you should keep in mind that is you should have some basics of CodeIgniter 4, mysql database and bit about MVC pattern. Rest all the things you will very clear during each sessions.