https://github.com/slimphp/tutorial-first-application
Tutorial application code for the First Application Walkthrough
https://github.com/slimphp/tutorial-first-application
Last synced: 9 months ago
JSON representation
Tutorial application code for the First Application Walkthrough
- Host: GitHub
- URL: https://github.com/slimphp/tutorial-first-application
- Owner: slimphp
- Created: 2016-03-12T15:38:48.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2022-11-07T21:51:28.000Z (about 3 years ago)
- Last Synced: 2025-03-25T08:20:56.583Z (9 months ago)
- Language: PHP
- Size: 451 KB
- Stars: 126
- Watchers: 16
- Forks: 48
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Slim Tutorial
This is the companion source code for the Slim Framework [First Application Walkthrough][1] 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.
[1]: https://www.slimframework.com/docs/v3/tutorial/first-app.html