choirulafandi / slim-skeleton
A Slim Framework skeleton application for development
Installs: 54
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 3
Forks: 0
Open Issues: 0
Language:HTML
Type:project
Requires
- php: >=5.5.9
- illuminate/database: ^5.2
- monolog/monolog: ^1.17
- robmorgan/phinx: ^0.5.3
- slim/csrf: ^0.6.0
- slim/flash: ^0.1.0
- slim/slim: ^3.0
- slim/twig-view: ^2.1
- vlucas/phpdotenv: ^2.1
- vlucas/valitron: ^1.2
This package is not auto-updated.
Last update: 2025-03-01 21:48:53 UTC
README
Requirements
- PHP 7.0 or newer.
- HTTP Server, Apache.
- MySQL Server 5.x or newer.
Using
- Slim Framework 3
- Laravel Database
- Slim Twig View
- Slim CSRF
- Slim Flash
- Monolog
- Robmorgan Phinx Migrations
- Vlucas Valitron Validator
- Vlucas phpdotenv
Installation
- Create Project
$ composer create-project -n -s dev choirulafandi/slim-skeleton my-app
- Init phinx migration and edit migrations config at phinx.yml file
$ php vendor/bin/phinx init
- Open .env in project root dan setting your environment
$ cp .env.example .env
- chmod folder logs
$ sudo chmod -R 777 logs
- use PHP built in server dan pointing to folder public as docroot.
$ php -S localhost:8080 -t public/
- Browse to http://localhost:8080
Key Directory
app
: Application codeapp/src
: All class files within theApp
namespacedb
: Database migration and seedinglogs
: Log filestemplate
: Twig template filespublic
: Webserver rootvendor
: Composer dependencies
Key files
public/index.php
: Entry point to applicationapp/settings.php
: Configurationapp/dependencies.php
: Services for Pimpleapp/middleware.php
: Application middlewareapp/routes.php
: All application routes are hereapp/database.php
: Setting database eloquent