定制 itpeopleperformance/apihelper-bundle 二次开发

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

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

itpeopleperformance/apihelper-bundle

Composer 安装命令:

composer require itpeopleperformance/apihelper-bundle

包简介

Symfony4 Bundle - API short and fast usual render-2

README 文档

README

Symfony2 Bundle - API short and fast usual render

Installation

Composer

Write in terminal:

composer require sopinet/apihelper-bundle-2 "1.0"

AppKernel

Enable the Bundle, Add to Kernel:

// app/AppKernel.php

// ...
class AppKernel extends Kernel
{
    // ...

    public function registerBundles()
    {
        $bundles = array(
            // ...
            new Sopinet\ApiHelperBundle\SopinetApiHelperBundle(),
            new FOS\RestBundle\FOSRestBundle(),
            new JMS\SerializerBundle\JMSSerializerBundle(),
        );

        // ...
    }
}

Add to config

Configure FOSRestAPI:

fos_rest:
    routing_loader:
        default_format: json

Bundle dependency

Remember, this bundle has another bundles dependency:

https://github.com/schmittjoh/JMSSerializerBundle

https://github.com/FriendsOfSymfony/FOSRestBundle

Configuration about these bundles was included. If you have any problem with configuration, please, review official documentation about these bundles.

Use

use SopinetApiHelperBundle\Services\ApiHelper;
$apiHelper = $this->get('sopinet_apihelperbundle_apihelper');
...
return $apiHelper->responseOk();

TODO: More Documentation

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 4
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-03-16

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固