tsantos / serializer-bundle
将 TSantos Serializer 集成到 Symfony 应用程序中
v2.0.0
2018-11-11 20:41 UTC
Requires
- php: ^7.1
- symfony/config: ^3.4 || ^4.0
- symfony/console: ^3.4 || ^4.0
- symfony/dependency-injection: ^3.4 || ^4.0
- symfony/event-dispatcher: ^3.4 || ^4.0
- symfony/framework-bundle: ^3.4 || ^4.0
- symfony/http-kernel: ^3.4 || ^4.0
- symfony/twig-bundle: ^3.4 || ^4.0
- tsantos/serializer: ^4.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.12
- symfony/phpunit-bridge: ^3.4 || ^4.0
- symfony/stopwatch: ^3.4 || ^4.0
Suggests
- symfony/yaml: Allow to use Yaml format to define class metadata
This package is auto-updated.
Last update: 2024-09-28 13:14:47 UTC
README
安装
使用 Symfony Flex 的应用程序
打开命令行,进入你的项目目录并执行
$ composer require tsantos/serializer-bundle
不使用 Symfony Flex 的应用程序
步骤 1: 下载 Bundle
打开命令行,进入你的项目目录并执行以下命令以下载此 Bundle 的最新稳定版本
$ composer require tsantos/serializer-bundle
此命令要求你已全局安装 Composer,具体请参阅 Composer 文档中的安装章节。
步骤 2: 启用 Bundle
然后,通过将其添加到项目中的 app/AppKernel.php 文件中注册的 Bundle 列表来启用该 Bundle
<?php // app/AppKernel.php // ... class AppKernel extends Kernel { public function registerBundles() { $bundles = array( // ... new TSantos\SerializerBundle\TSantosSerializerBundle(), ); // ... } // ... }
文档
请访问文档页面以阅读有关此 Bundle 的详细信息。
测试
$ composer test
许可证
- MIT