daithi / bluemix-php
dev-master
2015-04-12 02:06 UTC
Requires (Dev)
This package is not auto-updated.
Last update: 2024-09-28 17:49:10 UTC
README
一个PHP库,用于提供API调用和处理使用PHP与Bluemix个性洞察服务进行认证
关于个性洞察API的文档可以在这里找到: REST API文档 使用node的示例: watson-developer-cloud/personality-insights-nodejs
由于依赖关系导致的依赖项
- Guzzle restful库
- PHP 5.4.0
- 要使用PHP流处理器,必须在您的系统php.ini中启用allow_url_fopen。
- 要使用cURL处理器,您必须拥有一个编译了OpenSSL和zlib的cURL最新版本 >= 7.16.2。
下载代码
git clone https://github.com/daithi-coombes/bluemix-personality-insights-php
添加凭据
cp -a config.yml.dist config.yml
将您的 IBM Bluemix 凭据输入到 config.yml 文件中。确保包括您的 用户名、密码 和账户中个性洞察服务的 URL。
运行示例
php bin/run
运行测试
cd bluemix-personality-insights-php
composer test