-
Chapter 1: Required Software and Installing the Tools
- Windows
- Mac
- Linux
- Composer
-
Chapter 2: Knowing general aspects of Codeigniter 4
- Organization of a project
- Model view controller
- Spark The command line
- Download and install CodeIgniter
- Run the app
- Getting started with CodeIgniter 4
-
Chapter 3: CRUD for categories
- Controller
- Views
- Models
- Routes
-
Chapter 4: Routes and redirects
- Group routes
- Redirects
- Named routes
- Redirects and named routes
- Limit resource paths or presenter:
-
Chapter 5: Session and flash messages
- Flash messages
- Messages session
-
Chapter 6: Views
- Views and layouts
-
Chapter 7: Controllers
- Reorder Controllers
- Private methods
-
Chapter 8: Forms
- Validations
- Previous value (old)
-
Chapter 9: Models
- Model Properties
- Changes to return types
-
Chapter 10: Filters
- Create a filter
-
Chapter 11: Rest Api CRUD
- Case study
- Return json in controllers
-
Chapter 12: Seeders
- Generate a seeder:
- Nested seeders
-
Chapter 13: Relationships
- One-to-many relationships
- Many-to-many relationships
- Chapter 14: Uploading files
-
Chapter 15: Libraries and helper functions
- Case study
CodeIgniter 4 From Zero to Advanced: CRUD, Online Store and APIs with PHP 8
Design professional web applications with CodeIgniter 4: authentication, Bootstrap 5, payments with PayPal, REST API, invoicing, and real admin panels
This book is for anyone who wants to build their first applications in CodeIgniter 4, this writing offers a step-by-step introduction, knowing the most relevant aspects of it, focused above all on practice.
It is aimed at those who want to learn something new, learn about a framework that has very little documentation.
Minimum price
$8.00
$30.00
You pay
Author earns
About
About the Book
This book is for anyone who wants to build their first applications in CodeIgniter 4, this writing offers a step-by-step introduction to the framework, knowing the most relevant aspects of it and is focused above all on practice; It is assumed that the reader has knowledge and has developed in PHP and related technologies of the language, such as JavaScript, HTML and CSS, since, remember that to use any framework, you have to have the bases that support it, that is, your programming language.
Map
This book has a total of 21 chapters and consists of explanations and practices.
Chapter 1 - Required Software and Installing the Tools: This chapter is intended to explain the environment needed to develop in CodeIgniter 4.
Chapter 2 - Knowing general aspects of CodeIgniter 4: We take the first steps with the frameworks, we will know the official website of the framework, installation forms and advantages of each one of them, we install the framework, we will know the initial aspects on how to run the framework, configure a database, create our first components, the use of migrations for table management and we will see several cases on how to work with them, we will work with the MVC and create each of these components that define it from scratch, routing and of course, finishing the chapter with the traditional CRUD for one of our entities.
Chapter 3 - CRUD for categories: It is a practice for you, in which you have to create another CRUD; putting into practice everything seen in the first chapter.
Chapter 4 - Routes and redirects: You will know how to use the routes, grouped routes, their options and the different types.
Chapter 5 - Session and flash messages: We will know the use of the session and also of the flash session to save data and present it to the user.
Chapter 6 - Views and layouts: You will learn to manage views in a reusable way.
Chapter 7 - Controllers: We will see how to use a more modular scheme when defining controllers for each type of module.
Chapter 8 - Forms: We will know how to work with HTML forms and apply validations from the server side in CodeIgniter, knowing the types of validations, creating them and applying validations from the controller; to then finally show the errors by the view; we will also learn how to use helper functions in our forms.
Chapter 9 - Models: We will learn more about models, some properties that we can define in them, the use of functions and common example cases.
Chapter 10 - Filters: We will learn to use filters to intercept requests; as a practical case, we will create an authentication module with login for our application in which we will protect the management module or dashboard.
Chapter 11 - Seeders: In this chapter you will learn to generate test data with seeders which are ideal for when we are starting to develop.
Chapter 12 - Database - Relationships: In this chapter we will learn how to handle the relational schema of the database in CodeIgniter; we will look at one-to-many and many-to-many relationships.
Chapter 13 - File Upload: In this chapter we are going to work with uploading files in our application, to upload images to our movie model.
Chapter 14 - Fundamental Libraries and Advanced Processing in CodeIgniter 4: This chapter provides an introduction to the use of the libraries and help functions and how to use them.
Chapter 15 - Bootstrap 5: This chapter we will adapt Bootstrap 5 components in the application.
Chapter 16 - Web module: This chapter we will create an end user module with list and detail page.
Chapter 17 - Rest Api CRUD: This chapter we will make some changes in the Rest Api created previously to define additional methods such as upload, pagination, among others.
Chapter 18 - PayPal: In this chapter we will learn how to integrate the PayPal platform in CodeIgniter, in order to process payments directly from the application.
Chapter 19 - CodeIgniter Shield: This chapter we will know how to integrate CodeIgniter shield to handle authentication and authorization; also, we will create a small project with which we will learn to manage groups and permissions.
Chapter 20 - Consuming the Rest Api from a Vue app: We will build an application in Vue with which to consume the Rest API created previously using Oruga Ui and Tailwind 4.
Chapter 21 - Proyects: In this chapter, we will look at several projects, such as creating an AutoCRUD inventory system to practice what we have learned in previous chapters.
I invite you to visit my website:
desarrollolibre.net
And get to know my work.
Author
About the Author
Andrés Cruz Yoris, Licenciado en Computación, con más de 10 años de experiencia en el desarrollo de aplicaciones web en general; trabajo con PHP, Python y tecnologías del lado del cliente como HTML, JavaScript, CSS, Vue entre otras; y del lado del servidor como Laravel, Flask, Django y Codeigniter. También desarrollo con Android Studio, xCode y Flutter para la creación de aplicaciones nativas para Android e IOS.
Pongo a tú disposición parte de mi aprendizaje, reflejado en cada una de las palabras que componen mis libros sobre el desarrollo de aplicaciones en general.
Translations
Translations
Languages
Contents
Table of Contents
Get the free Community Edition
You can get the free Community Edition in PDF or EPUB just by sharing your name and email address with the author.
The Leanpub 60 Day 100% Happiness Guarantee
Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.
See full terms...
Earn $8 on a $10 Purchase, and $16 on a $20 Purchase
We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.
(Yes, some authors have already earned much more than that on Leanpub.)
Learn more about writing on Leanpub
Free Updates. DRM Free.
If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).
Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.
Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.
Learn more about Leanpub's ebook formats and where to read them
Write and Publish on Leanpub
You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!
Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.
Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.