Skip to content

jorisnoo/pixabay-php-api

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pixabay PHP Client

Build Status Code Climate Packagist GitHub license

This is unofficial wrapper for Pixabay RESTful API for searching and retrieving Pixabay public domain images.

Pixabay

Installing via Composer

The recommended way to install Pixabay PHP Client is through Composer.

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

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

composer require zoonman/pixabay-php-api

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

require 'vendor/autoload.php';

Documentation

Compatible with PHP verisons:

  • 5.5
  • 5.6
  • 7
  • hhvm
  • nightly

See current build status above.

Usage example

<?php

require_once 'vendor/autoload.php';

$pixabayClient = new \Pixabay\PixabayClient([
	'key' => 'yourPixabayKey'
]);

// test it
$results = $pixabayClient->get(['q' => 'nature'], true);
// show the results
var_dump($results);

To obtain your keys go to https://pixabay.com/api/docs/

More information can be found in the online documentation at https://www.zoonman.com/projects/pixabay/

About

Pixabay PHP API for searching and retrieving public domain images.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%