madithouse / new-slim-webapp
New Slim WebApp skeleton
1.0.0
2017-09-30 19:08 UTC
Requires
- php: >5.6.0
- illuminate/database: ^5.4
- illuminate/events: ^5.4
- phpmailer/phpmailer: ~6.0
- slim/flash: ^0.2.0
- slim/slim: ^3.0
- slim/twig-view: ^2.2
This package is not auto-updated.
Last update: 2024-04-14 02:56:03 UTC
README
Version: 1.0.0 Stable
About
madithouse/new-slim-webapp is build using slim/slim, and contain basic settings to get started with a new PHP project.
Demo
see the code working here
Get Started
Use composer to get started
composer create-project madithouse/new-slim-webapp
Database Setup
- Setup Database see
databaseStructure
dir for database schema. - Update
src/config.php
with database details.
Creating new pages
Pages are rendered using slim/twig
- Views are located in
src/resources/views
- Routes ae called using classes, located in
src/classes/Routes
- After setting up routes in classes, make sure you connect them using the container so they can be called by the routes page, container file is located at
src/container.php
- At last setup the route in
src/routes.php
and call them using the container.