2017 © Pedro Peláez
 

library silex

Silex Micro-Framework skeleton

image

awurth/silex

Silex Micro-Framework skeleton

  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 26 Versions
  • 0 % Grown

The README.md

Silex skeleton

SensioLabsInsight Scrutinizer Code Quality, (*1)

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

Features

Installation

Create project using Composer

``` bash $ composer create-project awurth/silex [project-name], (*3)


### Setup environment variables Copy `.env.dist` to a `.env` 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 front-end dependencies ``` bash $ yarn

Or if you use npm: ``` bash $ npm install, (*4)


#### Generate assets If you just want to generate the default CSS and JS that comes with this skeleton, run the following command ``` bash $ yarn run encore dev

Or if you don't use yarn: ``` bash $ ./node_modules/.bin/encore dev, (*5)


If you want to run a watcher and begin coding, just add the `--watch` option ``` bash $ yarn run encore dev --watch

See the documentation, (*6)

Setup cache files permissions

The skeleton uses a cache system for Twig templates, translations, Doctrine, the web profiler 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

``` bash $ php bin/console doctrine:database:create $ php bin/console doctrine:schema:update --force, (*8)


If you're using [Oh My Zsh](https://github.com/robbyrussell/oh-my-zsh), you can install the symfony2 plugin, which provides an alias and autocompletion: ``` bash # Without Symfony2 plugin $ php bin/console doctrine:database:create # With Symfony2 plugin $ sf doctrine:database:create

The Versions