tsantos/serializer-bundle

将 TSantos Serializer 集成到 Symfony 应用程序中

安装: 294

依赖者: 0

建议者: 0

安全: 0

星标: 2

关注者: 2

分支: 0

开放问题: 1

类型:symfony-bundle

v2.0.0 2018-11-11 20:41 UTC

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