silexphp / Silex-Skeleton

A skeleton to get started with Silex
MIT License
780 stars 197 forks source link
php silex skeleton skeleton-application

Silex Skeleton

WARNING: Silex is in maintenance mode only. Ends of life is set to June

  1. Read more on Symfony's blog_.

Welcome to the Silex Skeleton - a fully-functional Silex application that you can use as the skeleton for your new applications.

This document contains information on how to start using the Silex Skeleton.

Creating a Silex Application

Silex uses Composer_ to ease the creation of a new project:

.. code-block:: console

$ composer create-project fabpot/silex-skeleton path/to/install "~2.0"

Composer will create a new Silex project under the path/to/install directory.

Browsing the Demo Application

Congratulations! You're now ready to use Silex.

To see a real-live Silex page in action, start the PHP built-in web server with command:

.. code-block:: console

$ cd path/to/install
$ COMPOSER_PROCESS_TIMEOUT=0 composer run

Then, browse to http://localhost:8888/index_dev.php/

Getting started with Silex

This distribution is meant to be the starting point for your Silex applications.

A great way to start learning Silex is via the Documentation_, which will take you through all the features of Silex.

What's inside?

The Silex Skeleton is configured with the following service providers:

Read the Providers_ documentation for more details about Silex Service Providers.

Enjoy!

.. _Composer: http://getcomposer.org/ .. _Documentation: http://silex.sensiolabs.org/documentation .. _ValidatorServiceProvider: http://silex.sensiolabs.org/doc/master/providers/validator.html .. _ServiceControllerServiceProvider: http://silex.sensiolabs.org/doc/master/providers/service_controller.html .. _TwigServiceProvider: http://silex.sensiolabs.org/doc/master/providers/twig.html .. _WebProfilerServiceProvider: http://github.com/silexphp/Silex-WebProfiler .. _MonologServiceProvider: http://silex.sensiolabs.org/doc/master/providers/monolog.html .. _Providers: http://silex.sensiolabs.org/doc/providers.html .. _Symfony's blog: http://symfony.com/blog/the-end-of-silex