phpro/zf-encoding-com
最新稳定版本:v0.1.1
Composer 安装命令:
composer require phpro/zf-encoding-com
包简介
A wrapper for the encoding.com API.
README 文档
README
Repository abandoned 2020-11-27
This repository has been archived since we are not using it anymore internally. Feel free to use it AS-IS, we won't be providing any support anymore.
zf-encoding-com
This module is a wrapper for calling the Encoding.com API. It is based on package "svilborg/guzzle-encoding-com".
Installation
Add to composer.json
"phpro/zf-encoding-com": "~0.1.0"
Add to application config
return array( 'modules' => array( 'Phpro\\EncodingCom', // other libs... ), // Other config );
Configuration
Copy the file config/phpro_zf_encoding_com.local.php.dist to the autoload folder of your application.
Configuration options:
API
- user ID: The API user ID
- user key: The API user key
Notify
- format: xml or json
- notify_route: defaults to encodingcom/notify
- notify_service: the key of the service that needs to be called when receiving a notification. Note: this service must implement NotifyInterface
Local tunnel
When you are running the application on a domain that is not publicly available, it is possible to use a service like ngrok. Ngrok will run on a custom domain name, so you will need to enable this local tunnel in configuration:
- enabled: true / false
- host: the host of the tunnel. E.g: subdomain.ngrok.com
Hash
For security reasons, a hash is added to the notification routes. Please specify a unique string which match regex: [0-9a-zA-Z]*
统计信息
- 总下载量: 898
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-02-03