承接 likibu/client 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

likibu/client

最新稳定版本:2.1.5

Composer 安装命令:

composer require likibu/client

包简介

Minimalist Likibu API Client for PHP

README 文档

README

Access more than 5 000 000 short term rentals using Likibu API

Installing via Composer (Recommended)

The recommended way to install is through Composer :

Install composer

curl -sS https://getcomposer.org/installer | php

Add Likibu Client as dependency

php composer.phar require likibu/client @dev

After installing, you need to require Composer's autoloader:

require 'vendor/autoloader.php'

Using the PHAR archive

Copy LikibuClient.phar to your project's directory.

Then you just have to require it:

require 'path/to/LikibuClient.phar'

Requirements

PHP >= 5.5, cURL, Guzzle 6

You will also need an API key. Contact us on Likibu to get an access.

API Documentation

Exemples

Get all the offers in Paris

<?php
require 'vendor/autoloader.php'

$client = new \Likibu\Client('API_KEY');
$offers = $client->search(array(
    'where' => 'Paris',
    'culture' => 'en',
    'currency' => 'EUR',
));

// do something with the results
foreach ($offers['results'] as $result) {
    $id = $result['id'];
    $title = $result['title'];
}

Get an offer's details

<?php
require 'vendor/autoloader.php'

$client = new \Likibu\Client('API_KEY');
$offer = $client->getOffer('azerty123', array(
    'culture' => 'en',
    'currency' => 'EUR',
));

统计信息

  • 总下载量: 6.64k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 3
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2015-05-11