php-rpc/cruds 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

php-rpc/cruds

Composer 安装命令:

composer require php-rpc/cruds

包简介

Symfony CRUD bundle

README 文档

README

License Build Status Code Coverage Scrutinizer Code Quality

Latest Stable Version Latest Unstable Version Total Downloads

Features

The main purpose of this library it to create easy configurable and extensible API for entities:

  • Read controller with flexible entity querying and filtering
  • Create and update controllers with easy entity lifecycle control
  • Basic access checks

Installation

  1. Require package from packagist:
composer require php-rpc/cruds:~1.0
  1. Include bundle into your application kernel

Doctrine bundle is mandatory to include too as it provides the common "@doctrine" service.

class AppKernel extends Kernel {
    public function registerBundles()
    {
        return [
            //...
            new Doctrine\Bundle\DoctrineBundle\DoctrineBundle,
            new ScayTrase\Api\Cruds\CrudsBundle(),
            //...
        ];
    }
}

That's all, you are ready to go!

Configuration

See Configuration reference

Usage

See usage manual

Hooking (Event system)

See usage manual

Dependencies

Currently the main dependency is doctrine/common library which provides the Criteria and the Selectable interface as powerful tool to configure fetch the entities. Second important dependency is doctrine/doctrine-bundle providing the doctrine registry. You can implement and override it though.

Integrations

See integration reference

Current limitations

Property mapper

Currently only application-wide API property mapper is supported. This happens because you can use the relations during the criteria configuration and the mapper used for the one entity should handle all of them.

This means that you cannot use both jms/serializer and symfony/serializer as api metadata provider at the same time, you have to choose and convert mappings.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-09-02

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固