This playground is here to help you learn CodeIgniter 4 by example. We try to cover use cases for the most common tasks you'll find yourself doing in web applications. Where there are multiple ways to do something, we've tried to give examples of doing things in each way.
This isn't meant to replace the docs. This is just something to look at to get a deeper understanding, or to better see how something could be done in practice. Resources
There are two primary ways to learn about what's going on here in the Playground. The first is the code itself. We've heaped a LOT of comments throughout the code. They're your best docs. So explore them in depth. Additionally, there's a small collection of docs in the conveniently named docs folder.
To setup a working playground on your own local device, read through the next section.
In order to get the playground setup on your own computer, you'll need a few minimum requirements - all of which are listed on CodeIgniter's repo. Basically, as long as you are running PHP 7.2 or later you'll meet most of them.
While CodeIgniter does not require it, using this repo also requires the use of Composer to install CodeIgniter as a dependency, and PHPUnit - the test framework. You don't need that installed globally, and we actually recommend against it, since different projects likely require different versions of PHPUnit installed as time goes on and it can become tricky maintain a local environment that works with all of the different versions.
While it can be downloaded as a zip and extracted, we'll use git to manage things.
With those out of the way, it only takes a few small steps to get the project up and running locally.
If you get would like to change the port it's running on, that's no problem:
php spark serve --port 8081
There are some portions of the code intentionally left for you to finish. Once you are familiar with the project and have read through the docs try searching the code for anything with the comment Help!.
A space to learn and experience CodeIgniter 4 Topics codeigniter4 codeigniter playground php examples Resources Readme License MIT License Releases No releases published Contributors 4 @MGatner MGatner MGatner @lonnieezell lonnieezell lonnieezell @jim-parry jim-parry jim-parry @smhnaji smhnaji smhnaji