Tutorial-First-Application
Tutorial-First-Application copied to clipboard
Tutorial application code for the First Application Walkthrough
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 installto 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 inphinx.ymlso adjust as appropriate for your platform) - adjust
$config['db']inpublic/index.phptoo - create
logs/app.logand adjust permission as appropriate for your platform
Patches to both tutorial and code are welcome.