goldenline / sare-soap-api-bundle
SARE SOAP API的Symfony扩展包
1.0.0
2014-12-17 13:14 UTC
Requires
- php: ~5.4
- ext-soap: *
- symfony/framework-bundle: ~2.3
This package is not auto-updated.
Last update: 2024-09-24 04:28:14 UTC
README
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