tristanbes/my-poseo-bundle
最新稳定版本:v6.1.0
Composer 安装命令:
composer require tristanbes/my-poseo-bundle
包简介
Access to MyPoseo API
README 文档
README
Description:
This bundle provides a way to communicate with MyPoseo webservices inside your Symfony4 application.
For now, only the Search API has been wired. If you need more, PR are welcome.
The Search API allows you to get the position of an URL by keyword(s) among other features.
Installation:
Add tristanbes/my-poseo-bundle to your composer.json:
php composer.phar require "tristanbes/my-poseo-bundle": "2.*"
Register the bundle in the kernel:
<?php // app/AppKernel.php public function registerBundles() { $bundles = array( // ... new Tristanbes\MyPoseoBundle\MyPoseoBundle() ); }
How to use it:
You can configure the bundle with:
my_poseo: api: key: "YOUR_API_KEY" cache_service_id: ~ http_client: 'name_of_your_http_adapter' type: search: base_url: "http://api.myposeo.com/m/apiv2"
Your API key can be found on this page.
Be careful, the given API key is already url encoded ! You need to decode it since guzzle re-encode automatically all parameters
Choose HTTP client
MyPoseoBundle 2.0 is no longer coupled to Guzzle3. Thanks to Httplug you can now use any library to transport HTTP messages. You can rely on discovery to automatically find an installed client or you can provide a client service name to the configuration (see HttplugBundle).
统计信息
- 总下载量: 60.89k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2014-11-05