{"id":27296294,"url":"https://github.com/zoonman/pixabay-php-api","last_synced_at":"2025-04-11T23:35:08.796Z","repository":{"id":24588415,"uuid":"27996564","full_name":"zoonman/pixabay-php-api","owner":"zoonman","description":"Pixabay PHP API for searching and retrieving public domain images.","archived":false,"fork":false,"pushed_at":"2023-06-26T16:10:25.000Z","size":51,"stargazers_count":31,"open_issues_count":0,"forks_count":19,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-06T03:17:18.317Z","etag":null,"topics":["api","api-client","composer","free","guzzlehttp","images","php","pixabay","pixabay-php-api","pixabay-php-client"],"latest_commit_sha":null,"homepage":"https://www.zoonman.com/projects/pixabay/","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zoonman.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2014-12-14T14:21:43.000Z","updated_at":"2025-03-27T00:15:50.000Z","dependencies_parsed_at":"2024-06-18T21:24:46.191Z","dependency_job_id":null,"html_url":"https://github.com/zoonman/pixabay-php-api","commit_stats":{"total_commits":62,"total_committers":5,"mean_commits":12.4,"dds":0.3709677419354839,"last_synced_commit":"116b2d72d4e806a1e627aa4e228a736b483751ea"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoonman%2Fpixabay-php-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoonman%2Fpixabay-php-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoonman%2Fpixabay-php-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoonman%2Fpixabay-php-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zoonman","download_url":"https://codeload.github.com/zoonman/pixabay-php-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248496873,"owners_count":21113910,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","api-client","composer","free","guzzlehttp","images","php","pixabay","pixabay-php-api","pixabay-php-client"],"created_at":"2025-04-11T23:35:08.214Z","updated_at":"2025-04-11T23:35:08.782Z","avatar_url":"https://github.com/zoonman.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pixabay PHP Client\n[![Build Status](https://github.com/zoonman/pixabay-php-api/actions/workflows/php.yml/badge.svg)](https://github.com/zoonman/pixabay-php-api/actions/workflows/php.yml) [![Code Climate](https://codeclimate.com/github/zoonman/pixabay-php-api/badges/gpa.svg)](https://codeclimate.com/github/zoonman/pixabay-php-api) [![Packagist](https://img.shields.io/packagist/dt/zoonman/pixabay-php-api.svg)]() [![GitHub license](https://img.shields.io/github/license/zoonman/pixabay-php-api.svg)]()\n\nThis is unofficial wrapper for [Pixabay RESTful API](http://pixabay.com/api/docs/) for searching and retrieving Pixabay public domain images. \n\n[![Pixabay](https://pixabay.com/static/img/logo.svg)](http://pixabay.com/)\n\n### Installing via Composer\n\nThe recommended way to install Pixabay PHP Client is through\n[Composer](http://getcomposer.org).\n\n```bash\n# Install Composer\ncurl -sS https://getcomposer.org/installer | php\n```\n\nNext, run the Composer command to install the latest stable version of Pixabay PHP Client:\n\n```bash\ncomposer require zoonman/pixabay-php-api\n```\n\nAfter installing, you need to require Composer's autoloader:\n\n```php\nrequire 'vendor/autoload.php';\n```\n\n### Documentation\n\nCompatible with PHP verisons:\n - 7.2+\n - 8\n - hhvm\n - nightly\n\nSee current build status above.\n\n#### Usage example\n\n```php\n\u003c?php\n// wire the Composer Autoloader\nrequire_once 'vendor/autoload.php';\n\n// instantiate the API Client\n// sign up for Pixabay service to get the correct API key\n$pixabayClient = new \\Pixabay\\PixabayClient([\n\t'key' =\u003e 'yourPixabayKey'\n]);\n\n// run simplest possible query against the API\n$results = $pixabayClient-\u003eget(['q' =\u003e 'nature'], true);\n// show the results\nvar_dump($results);\n\n// to get images use\n$results = $object-\u003egetImages(['q' =\u003e 'flowers', 'per_page' =\u003e 3], true);\nvar_dump($results);\n\n// to get videos use\n$results = $object-\u003egetVideos(['q' =\u003e 'smile', 'per_page' =\u003e 3], true);\nvar_dump($results);\n```\n\nTo obtain your keys go to https://pixabay.com/api/docs/\n\nMore information can be found in the online documentation at\nhttps://www.zoonman.com/projects/pixabay/\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzoonman%2Fpixabay-php-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzoonman%2Fpixabay-php-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzoonman%2Fpixabay-php-api/lists"}