Silex-Skeleton

A skeleton to get started with Silex

Github星跟踪图

Silex Skeleton

WARNING: Silex is in maintenance mode only. Ends of life is set to June
2018. 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:

  • ValidatorServiceProvider_ - Provides a service for validating data. It is
    most useful when used with the FormServiceProvider, but can also be used
    standalone.

  • ServiceControllerServiceProvider_ - As your Silex application grows, you
    may wish to begin organizing your controllers in a more formal fashion.
    Silex can use controller classes out of the box, but with a bit of work,
    your controllers can be created as services, giving you the full power of
    dependency injection and lazy loading.

  • TwigServiceProvider_ - Provides integration with the Twig template engine.

  • WebProfilerServiceProvider_ - Enable the Symfony web debug toolbar and
    the Symfony profiler in your Silex application when developing.

  • MonologServiceProvider_ - Enable logging in the development environment.

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

主要指标

概览
名称与所有者silexphp/Silex-Skeleton
主编程语言PHP
编程语言PHP (语言数: 2)
平台
许可证MIT License
所有者活动
创建于2012-06-26 16:59:22
推送于2018-02-07 08:59:48
最后一次提交2018-02-07 09:59:44
发布数11
最新版本名称v2.0.2 (发布于 2017-04-08 10:31:51)
第一版名称v1.0.0 (发布于 2013-03-08 08:18:16)
用户参与
星数779
关注者数71
派生数196
提交数96
已启用问题?
问题数37
打开的问题数5
拉请求数19
打开的拉请求数5
关闭的拉请求数22
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?