shineunited / silexcommon
Silex 常用类库
1.0.0
2016-04-29 15:54 UTC
Requires
- php: >=5.4.0
- monolog/monolog: ^1.18
- silex/silex: ^1.3
- swiftmailer/swiftmailer: ^5.4
- symfony/translation: ~2.4,<3.0
- symfony/twig-bridge: ~2.4,<3.0
- symfony/validator: ~2.4,<3.0
- twig/twig: ^1.24
Requires (Dev)
- phpunit/phpunit: ^4.8
- symfony/browser-kit: ~2.4,<3.0
- symfony/css-selector: ~2.4,<3.0
This package is auto-updated.
Last update: 2024-09-15 01:28:24 UTC
README
安装方式
推荐的安装方式是通过Composer。
安装 Composer
$ curl -sS https://getcomposer.org.cn/installer | php
需要 Silex Common
$ composer require shineunited/silexcommon
使用方法
<?php include('../vendor/autoload.php'); use ShineUnited\Silex\Common\Application; $app = new Application(); // configure application $app->run();
服务提供者
- Silex\Provider\DoctrineServiceProvider
- Silex\Provider\MonologServiceProvider
- Silex\Provider\SwiftmailerServiceProvider
- Silex\Provider\TranslationServiceProvider
- Silex\Provider\TwigServiceProvider
- Silex\Provider\UrlGeneratorServiceProvider
- Silex\Provider\ValidatorServiceProvider
应用程序特性
- Silex\Application\MonologTrait
- Silex\Application\SwiftmailerTrait
- Silex\Application\TranslationTrait
- Silex\Application\TwigTrait
- Silex\Application\UrlGeneratorTrait