2017 © Pedro Peláez
 

project slim-skeleton

A Slim Framework skeleton application for development

image

choirulafandi/slim-skeleton

A Slim Framework skeleton application for development

  • Sunday, October 29, 2017
  • by afandi
  • Repository
  • 1 Watchers
  • 3 Stars
  • 19 Installations
  • HTML
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Simple Slim Framework 3 skeleton application

Requirements

  • PHP 7.0 or newer.
  • HTTP Server, Apache.
  • MySQL Server 5.x or newer.

Using

Installation

1) Create Project, (*1)

$ composer create-project -n -s dev choirulafandi/slim-skeleton my-app

2) Init phinx migration and edit migrations config at phinx.yml file, (*2)

$ php vendor/bin/phinx init

3) Open .env in project root dan setting your environment, (*3)

$ cp .env.example .env

4) chmod folder logs, (*4)

$ sudo chmod -R 777 logs

5) use PHP built in server dan pointing to folder public as docroot., (*5)

$ php -S  localhost:8080 -t public/

6) Browse to http://localhost:8080, (*6)

Key Directory

  • app: Application code
  • app/src: All class files within the App namespace
  • db: Database migration and seeding
  • logs: Log files
  • template: Twig template files
  • public: Webserver root
  • vendor: Composer dependencies

Key files

  • public/index.php: Entry point to application
  • app/settings.php: Configuration
  • app/dependencies.php: Services for Pimple
  • app/middleware.php: Application middleware
  • app/routes.php: All application routes are here
  • app/database.php: Setting database eloquent

The Versions

29/10 2017
29/10 2017

dev-php-version

dev-php-version

A Slim Framework skeleton application for development

  Sources   Download

MIT

The Requires

 

rest psr7 microframework router