2017 © Pedro Peláez
 

library pixabay-php-api

PixabayClient is a PHP HTTP client library to access Pixabay's API

image

zoonman/pixabay-php-api

PixabayClient is a PHP HTTP client library to access Pixabay's API

  • Saturday, January 13, 2018
  • by zoonman
  • Repository
  • 2 Watchers
  • 13 Stars
  • 2,987 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 5 Forks
  • 1 Open issues
  • 9 Versions
  • 13 % Grown

The README.md

Pixabay PHP Client

Build Status Code Climate Packagist GitHub license, (*1)

This is unofficial wrapper for Pixabay RESTful API for searching and retrieving Pixabay public domain images., (*2)

Pixabay, (*3)

Installing via Composer

The recommended way to install Pixabay PHP Client is through Composer., (*4)

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

Next, run the Composer command to install the latest stable version of Pixabay PHP Client:, (*5)

composer require zoonman/pixabay-php-api

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

require 'vendor/autoload.php';

Documentation

Compatible with PHP verisons: - 7.2+ - 8 - hhvm - nightly, (*7)

See current build status above., (*8)

Usage example

<?php
// wire the Composer Autoloader
require_once 'vendor/autoload.php';

// instantiate the API Client
// sign up for Pixabay service to get the correct API key
$pixabayClient = new \Pixabay\PixabayClient([
    'key' => 'yourPixabayKey'
]);

// run simplest possible query against the API
$results = $pixabayClient->get(['q' => 'nature'], true);
// show the results
var_dump($results);

// to get images use
$results = $object->getImages(['q' => 'flowers', 'per_page' => 3], true);
var_dump($results);

// to get videos use
$results = $object->getVideos(['q' => 'smile', 'per_page' => 3], true);
var_dump($results);

To obtain your keys go to https://pixabay.com/api/docs/, (*9)

More information can be found in the online documentation at https://www.zoonman.com/projects/pixabay/, (*10)

The Versions

13/01 2018

dev-master

9999999-dev https://www.zoonman.com/projects/pixabay/

PixabayClient is a PHP HTTP client library to access Pixabay's API

  Sources   Download

MIT

The Requires

 

The Development Requires

curl rest http client web service http client pixabay

13/01 2018

1.0.3

1.0.3.0 https://www.zoonman.com/projects/pixabay/

PixabayClient is a PHP HTTP client library to access Pixabay's API

  Sources   Download

MIT

The Requires

 

The Development Requires

curl rest http client web service http client pixabay

05/11 2017

1.0.2

1.0.2.0 https://www.zoonman.com/projects/pixabay/

PixabayClient is a PHP HTTP client library to access Pixabay's API

  Sources   Download

MIT

The Requires

 

The Development Requires

curl rest http client web service http client pixabay

20/04 2016

1.0.1

1.0.1.0 https://www.zoonman.com/projects/pixabay/

PixabayClient is a PHP HTTP client library to access Pixabay's API

  Sources   Download

MIT

The Requires

 

The Development Requires

curl rest http client web service http client pixabay

12/12 2015

1.0.0

1.0.0.0 https://www.zoonman.com/projects/pixabay/

PixabayClient is a PHP HTTP client library to access Pixabay's API

  Sources   Download

MIT

The Requires

 

The Development Requires

curl rest http client web service http client pixabay

09/11 2015

0.1.3

0.1.3.0 https://www.zoonman.com/projects/pixabay/

PixabayClient is a PHP HTTP client library to access Pixabay's API

  Sources   Download

MIT

The Requires

 

The Development Requires

curl rest http client web service http client pixabay

05/09 2015

0.1.2

0.1.2.0 https://www.zoonman.com/projects/pixabay/

PixabayClient is a PHP HTTP client library to access Pixabay's API

  Sources   Download

MIT

The Requires

 

The Development Requires

curl rest http client web service http client pixabay

23/08 2015

0.1.1

0.1.1.0 https://www.zoonman.com/projects/pixabay/

PixabayClient is a PHP HTTP client library to access Pixabay's API

  Sources   Download

MIT

The Requires

 

The Development Requires

curl rest http client web service http client pixabay

14/12 2014

0.1

0.1.0.0 https://www.zoonman.com/projects/pixabay/

PixabayClient is a PHP HTTP client library to access Pixabay's API

  Sources   Download

MIT

The Requires

 

The Development Requires

curl rest http client web service http client pixabay