PHP code example of ahmetbarut / pixabay
1. Go to this page and download the library: Download ahmetbarut/pixabay library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
ahmetbarut / pixabay example snippets
use Pixabay\Client;
$pixabay = new Client([
"key" => "api_key",
"lang" => "tr",
"image_type" => "photo",
"q" => "kediler"
]);
$response = $pixabay->body();
print_r($response->hits);