定制 fabpot/silex-skeleton 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

fabpot/silex-skeleton

最新稳定版本:v2.0.2

Composer 安装命令:

composer create-project fabpot/silex-skeleton

包简介

A pre-configured skeleton for the Silex microframework

README 文档

README

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:

$ 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:

$ 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!

统计信息

  • 总下载量: 31.85k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 824
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 816
  • Watchers: 75
  • Forks: 230
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2012-06-26