All Projects β†’ codeigniter4projects β†’ Playground

codeigniter4projects / Playground

Licence: mit
A space to learn and experience CodeIgniter 4

Projects that are alternatives of or similar to Playground

Flutterbasicwidgets
ABC of Flutter widgets. Intended for super beginners at Flutter. Play with 35+ examples in DartPad directly and get familiar with various basic widgets in Flutter
Stars: ✭ 609 (+625%)
Mutual labels:  examples, playground
playground
πŸ“š Examples, projects, webprojects, skeletons for Nette Framework (@nette) from community members. Included @contributte @apitte @nettrine projects.
Stars: ✭ 23 (-72.62%)
Mutual labels:  playground, examples
Codeworld
Educational computer programming environment using Haskell
Stars: ✭ 1,142 (+1259.52%)
Mutual labels:  playground
Ngxs Examples
NGXS Example Apps
Stars: ✭ 80 (-4.76%)
Mutual labels:  examples
Workshops
Workshops for The Things Network
Stars: ✭ 74 (-11.9%)
Mutual labels:  examples
Audiokit
Swift audio synthesis, processing, & analysis platform for iOS, macOS and tvOS
Stars: ✭ 8,827 (+10408.33%)
Mutual labels:  playground
Bancha
Bancha is an open-source CMS made by Nicholas Valbusa written in PHP5.3.
Stars: ✭ 76 (-9.52%)
Mutual labels:  codeigniter
Docker Examples
There are many like it, but this one is mine.
Stars: ✭ 66 (-21.43%)
Mutual labels:  examples
Emojivision
A 200 something line Swift Playground for rendering images as emojis
Stars: ✭ 84 (+0%)
Mutual labels:  playground
Real World Sinatra
Real World Sinatra apps and their open source codebases for developers to learn from
Stars: ✭ 74 (-11.9%)
Mutual labels:  examples
Pixelartmaker
A pixel art editor in a Swift Playground πŸ‘Ύ WWDC Scholarship Winner πŸ…
Stars: ✭ 79 (-5.95%)
Mutual labels:  playground
Skeleton
A ready-to-use CodeIgniter skeleton with tons of new features and a whole new concept of hooks (actions and filters) as well as a ready-to-use and application-free themes and plugins system. Facebook Page: http://bit.ly/2oHzpxC | Facebook Group: http://bit.ly/2o3KOrA. Help me carry on making more free stuff β†’ http://bit.ly/2ppNujE ←
Stars: ✭ 74 (-11.9%)
Mutual labels:  codeigniter
Javamoney Examples
JavaMoney - Examples
Stars: ✭ 68 (-19.05%)
Mutual labels:  examples
Haxe Basics
The collection of easy samples and hello-worlds for Haxe.
Stars: ✭ 78 (-7.14%)
Mutual labels:  examples
Visualprogramminglanguage
Visual programming language written in Swift that assembles to executable Swift code. WWDC '18 scholarship submission.
Stars: ✭ 1,145 (+1263.1%)
Mutual labels:  playground
Examples
Serverless Examples – A collection of boilerplates and examples of serverless architectures built with the Serverless Framework on AWS Lambda, Microsoft Azure, Google Cloud Functions, and more.
Stars: ✭ 9,743 (+11498.81%)
Mutual labels:  examples
Sinoci
δΈ­ε›½η‰Ήθ‰²εŒ– CodeIgniter
Stars: ✭ 66 (-21.43%)
Mutual labels:  codeigniter
Example React Native Redux
react native redux counter example
Stars: ✭ 1,186 (+1311.9%)
Mutual labels:  examples
Gistlyn
Run Roslyn Gists
Stars: ✭ 75 (-10.71%)
Mutual labels:  playground
Codeigniter Ratchet Websocket
This library contains the demo of commenting/posting realtime using CodeIgniter+AngularJS+Ratchet PHP Websocket
Stars: ✭ 84 (+0%)
Mutual labels:  codeigniter

Playground

A space to learn and experience CodeIgniter 4

PHPUnit

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.

Getting Started

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.

1 - Clone the repo if you haven't already, from the CLI:

git clone https://github.com/codeigniter4projects/playground

That creates a new directory, playground, under your current directory.

2 - Enter the new directory and install the project dependencies with Composer. NOTE: The command shown here assumes that you have Composer loaded globally. If you don't, then pretend we're using composer.phar.

cd playground
composer install

3 - Copy .env.example in the project directory and name it .env. Then open it up and verify the settings:

  • First, CI_ENVIRONMENT is set to development as this enables error handling, the debug toolbar, and some other things handy while in development.

  • Next make sure that app.baseURL matches whatever you are currently running your site at. If you use spark, then it already matches the default. If this doesn't match, then generated links might not work, and your developer toolbar will never show up.

  • Finally while you're in there, you can edit your database settings, though you can do that in app/Config/Database.php just as easily. Since we won't deploy this to multiple servers it's no big deal to edit the config files directly.

4 - Back on the command line, we install all of the needed database tables and sample data.

php spark migrate
php spark db:seed PlaygroundSeeder

5 - That's it! If you're hosting through Apache, Nginx, etc, then head to your site. If you just want a quick way to work with your site locally, go back to the CLI and start up spark, CodeIgniter's small server.

php spark serve

If you get would like to change the port it's running on, that's no problem:

php spark serve --port 8081

Enjoy!

Code Challenges

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!.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].