2017 © Pedro Peláez
 

library client

Minimalist Likibu API Client for PHP

image

likibu/client

Minimalist Likibu API Client for PHP

  • Friday, March 23, 2018
  • by Likibu
  • Repository
  • 2 Watchers
  • 1 Stars
  • 336 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 7 Versions
  • 39 % Grown

The README.md

PHP Likibu API Client

Access more than 5 000 000 short term rentals using Likibu API, (*1)

The recommended way to install is through Composer :, (*2)

Install composer, (*3)

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

Add Likibu Client as dependency, (*4)

php composer.phar require likibu/client @dev

After installing, you need to require Composer's autoloader:, (*5)

require 'vendor/autoloader.php'

Using the PHAR archive

Copy LikibuClient.phar to your project's directory., (*6)

Then you just have to require it:, (*7)

require 'path/to/LikibuClient.phar'

Requirements

PHP >= 5.5, cURL, Guzzle 6, (*8)

You will also need an API key. Contact us on Likibu to get an access., (*9)

API Documentation

Exemples

Get all the offers in Paris, (*10)

<?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, (*11)

<?php
require 'vendor/autoloader.php'

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

The Versions

23/03 2018

dev-master

9999999-dev

Minimalist Likibu API Client for PHP

  Sources   Download

The Requires

 

23/03 2018

2.1.4

2.1.4.0

Minimalist Likibu API Client for PHP

  Sources   Download

The Requires

 

23/03 2018

dev-develop

dev-develop

Minimalist Likibu API Client for PHP

  Sources   Download

The Requires

 

23/03 2018

2.1.3

2.1.3.0

Minimalist Likibu API Client for PHP

  Sources   Download

The Requires

 

18/10 2017

2.1.1

2.1.1.0

Minimalist Likibu API Client for PHP

  Sources   Download

The Requires

 

28/06 2017

dev-rts

dev-rts

Minimalist Likibu API Client for PHP

  Sources   Download

The Requires

 

18/10 2016

1.0.0

1.0.0.0

Minimalist Likibu API Client for PHP

  Sources   Download

The Requires