crowdreactive/lob-bundle
最新稳定版本:2.0.0
Composer 安装命令:
composer require crowdreactive/lob-bundle
包简介
A Symfony bundle for the Lob.com PHP SDK
README 文档
README
Encapsulates Lob.com's PHP SDK in a Symfony bundle for configuration.
Bundled at CrowdReactive, makers of EventsTag.
Usage
-
Install the bundle:
composer require crowdreactive/lob-bundle -
Add it to AppKernel
class AppKernel { public function registerBundles() { $bundles = [ new Symfony\Bundle\FrameworkBundle\FrameworkBundle(), // ... new CrowdReactive\LobBundle\CrowdReactiveLobBundle(), ]; } }
-
Configuration
crowd_reactive_lob: # Required api_key: abc123 # Optional version: 1.5.0 # A specific version of the API
-
Access the Lob service
The
Lob\Lobinstance is namedcrowd_reactive_lob.lobin the dependency container. Access it with:$this->container->get('crowd_reactive_lob.lob');
my_postal_service: class: My\PostalService arguments: - "@crowd_reactive_lob.lob"
Contributing
PRs welcomed! Make sure to run the tests with composer run tests.
License
This bundle is under the MIT license. See the complete license.
统计信息
- 总下载量: 5.42k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-02-11