Skip to content
Tutorial application code for the First Application Walkthrough
Branch: master
Clone or download
Latest commit a1ae123 Jun 28, 2017
Type Name Latest commit message Commit time
Failed to load latest commit information.
db/migrations Populate components table with some entries Mar 9, 2016
src remove spl_autoload_register usage Apr 10, 2017 Modify the steps for clarity Mar 4, 2017

Slim Tutorial

This is the companion source code for the Slim Framework First Application Walkthrough tutorial.

It is a very simple Slim project to serve as an example application of using Slim 3 with Monolog, Phinx, PHP views and Composer to manage dependencies. In order to use the application as it stands:

  • change the shell working directory to src
  • run php composer.phar install to get the dependencies
  • create database to use
  • then run php vendor/bin/phinx migrate (or vendor\bin\phinx migrate on Windows 10) to get your database set up (the config is in phinx.yml so adjust as appropriate for your platform)
  • adjust $config['db'] in public/index.php too
  • create logs/app.log and adjust permission as appropriate for your platform

Patches to both tutorial and code are welcome.

You can’t perform that action at this time.