2017 © Pedro Peláez
 

library slim-base

Slim PHP Micro-Framework skeleton

image

awurth/slim-base

Slim PHP Micro-Framework skeleton

  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 22 Forks
  • 0 Open issues
  • 47 Versions
  • 6 % Grown

The README.md

Slim 3 application skeleton

SensioLabsInsight Scrutinizer Code Quality, (*1)

This is an app skeleton for the Slim PHP Micro-Framework to get started quickly, (*2)

Features

For more information, check out the project's wiki., (*3)

Installation

Create the project using Composer

``` bash $ composer create-project awurth/slim-base [project-name], (*4)


### Setup environment variables Copy `.env` to a `.env.local` file and change the values to your needs. This file is ignored by Git so all developers working on the project can have their own configuration. ### Download client-side libraries ``` bash $ yarn

or if you prefer to use npm ``` bash $ npm install, (*5)


### Webpack This skeleton uses Webpack to manage assets. The CSS and Javascript files are located in `assets/`, so you have to use Webpack after creating your project to generate the minified files in `public/`, which will be ignored by Git. #### Generate assets If you just want to generate the default CSS and JS that comes with this skeleton, run the following command ``` bash $ yarn build

or ``` bash $ npm run build, (*6)


If you want to run a watcher and begin coding ``` bash $ yarn watch

Setup cache files permissions

The skeleton uses a cache system for Twig templates and the Monolog library for logging, so you have to make sure that PHP has write permissions on the var/cache/ and var/log/ directories., (*7)

Update your database schema

First, create a database with the name you set in the .env* file. Then you can create the tables by running this command: bash $ php bin/console db, (*8)

The Versions

16/10 2016

1.1.0

1.1.0.0 https://github.com/awurth/quickslim

Boilerplate for Slim PHP micro-framework

  Sources   Download

MIT

The Requires

 

framework twig boilerplate skeleton eloquent slim

16/10 2016

1.0.0

1.0.0.0

Boilerplate for Slim PHP micro-framework

  Sources   Download

MIT

The Requires