goldenline/sare-soap-api-bundle

SARE SOAP API的Symfony扩展包

安装: 7

依赖者: 0

建议者: 0

安全: 0

星标: 1

关注者: 5

分支: 0

公开问题: 0

类型:symfony-bundle

1.0.0 2014-12-17 13:14 UTC

This package is not auto-updated.

Last update: 2024-09-24 04:28:14 UTC


README

Dependency Status

SARE SOAP API的Symfony扩展包

安装

安装此扩展包的最佳方式是使用Composer。只需运行

$ php composer.phar require goldenline/sare-soap-api-bundle dev-master

然后,启用扩展包

<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new GoldenLine\SareSoapApiBundle\GoldenlineSareSoapApiBundle(),
    );
}

最后添加您的证书

goldenline_sare_soap_api:
    cert: sare.pem

您的证书应包含您的私钥以及来自SARE的已签名证书。

用法

在控制器中,您只需这样做

public function someAction()
{
    $sare = $this->get('goldenline_sare_soap_api.client');
}

或者简单地将goldenline_sare_soap_api.client注入到任何其他服务中。

许可证

此扩展包根据MIT许可证发布。请参阅扩展包中的完整许可证。

Resources/meta/LICENSE