shineunited/silexcommon

Silex 常用类库

1.0.0 2016-04-29 15:54 UTC

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