This is a skeleton project for Slim 3 that includes Twig, TwigExtension, Flash messages, and Eloquent DB connection.
Users can sign-up and sign-in.
- First in your terminal:
$ git clone https://github.com/arneanka/slim3 slim3 - Then move inside that directory,
$ cd slim3 - Then run composer,
$ composer update
- Open terminal,
$ cd slim3(the root of the git clone) - Type
$ php -S 0.0.0.0:8888 -t public public/index.php - Create the database file,
$ touch resources/database.sqlite - Open folder
_installationand follow the steps. - Browse to http://localhost:8888
- Sign in with
john@example.comand password123
app: Application codeapp: All class files within theAppnamespaceresources/views: Twig template filescache/twig: Twig's Autocreated cache filespublic: Webserver rootvendor: Composer dependencies
public/index.php: Entry point to applicationbootstrap/settings.php: Configurationbootstrap/dependencies.php: Services for Pimplebootstrap/middleware.php: Application middlewareapp/routes.php: All application routes are hereapp/Controllers/Controllers/HomeAction.php: Home controller for the home pageresources/views/home.twig: Twig template file for the home page
- So many things to do. Much todo