承接 openclassrooms/service-proxy-bundle 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

openclassrooms/service-proxy-bundle

最新稳定版本:v2.3.0

Composer 安装命令:

composer require openclassrooms/service-proxy-bundle

包简介

Service Proxy Symfony2 Bundle

README 文档

README

Build Status SensioLabsInsight Coverage Status

The ServiceProxyBundle offers integration of the ServiceProxy library.
ServiceProxy provides functionality to manage technical code over a class:

  • Transactional context (not implemented yet)
  • Security access (not implemented yet)
  • Cache management
  • Events (not implemented yet)
  • Logs (not implemented yet)

See ServiceProxy for full details.

Installation

This bundle can be installed using composer:

composer require openclassrooms/service-proxy-bundle
or by adding the package to the composer.json file directly.

{
    "require": {
        "openclassrooms/service-proxy-bundle": "*"
    }
}

After the package has been installed, add the bundle to the AppKernel.php file:

// in AppKernel::registerBundles()
$bundles = array(
    // ...
    new OpenClassrooms\Bundle\ServiceProxyBundle\OpenClassroomsServiceProxyBundle(),
    // ...
);

⚠️ The usage of cache capabilities requires the installation of the openclassrooms/doctrine-cache-extension-bundle.
See the openclassrooms/doctrine-cache-extension-bundle installation guidefor more details.

Configuration

# app/config/config.yml

openclassrooms_service_proxy: ~

Full configuration

Usage

Cache

Use the Cache annotation.
See Service Proxy Cache for more details.

<?php

namespace A\Namespace;

use OpenClassrooms\ServiceProxy\Annotations\Cache;

class AClass
{
    /**
     * @Cache
     */
    public function aMethod()
    {
        // do things
    }
}

Using default cache provider

# app/config/config.yml

doctrine_cache:
    providers:
        a_cache_provider:
            type: array

openclassrooms_service_proxy: 
    default_cache: doctrine_cache.providers.a_cache_provider    
<!-- services.xml -->
<service id="a_service" class="A\Namespace\AClass">
    <tag name="openclassrooms.service_proxy"/>
</service>

Using specific cache provider

<!-- services.xml -->
<service id="a_service" class="AClass">
    <tag name="openclassrooms.service_proxy" cache="doctrine_cache.providers.a_cache_provider"/>
</service>

Performance

Autoloader

The usage of a proxy require a lot of I/O. See Ocramius\ProxyManager Tunning for production.
It's possible to specify the environments where the proxy autoloader is used.

openclassrooms_service_proxy:
    production_environments: ['prod', 'stage'] # default : ['prod']
    

Cache Warmup

The bundle uses the Symfony cache warmup to dump the proxies files.

Full configuration

openclassrooms_service_proxy:
    # the directory where the proxy are written
    cache_dir : "/a/path/to/the/cache/directory" # default: %kernel.cache_dir% 
    
    # the default cache provider (optional)
    default_cache: doctrine_cache.providers.a_cache_provider # default: null
    
    # the Symfony environments where the proxy autoloader is used
    production_environments: ['prod', 'stage'] # default : ['prod']
    

openclassrooms/service-proxy-bundle 适用场景与选型建议

openclassrooms/service-proxy-bundle 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 216.89k 次下载、GitHub Stars 达 0, 最近一次更新时间为 2015 年 10 月 21 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 openclassrooms/service-proxy-bundle 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 openclassrooms/service-proxy-bundle 我们能提供哪些服务?
定制开发 / 二次开发

基于 openclassrooms/service-proxy-bundle 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-10-21