定制 tristanbes/my-poseo-bundle 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

tristanbes/my-poseo-bundle

最新稳定版本:v6.1.0

Composer 安装命令:

composer require tristanbes/my-poseo-bundle

包简介

Access to MyPoseo API

README 文档

README

CI (master) Scrutinizer Code Quality

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

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 4
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-11-05

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固