pjmil / laravel-pixabay
Laravel facade for accessing the Pixabay API
dev-master
2019-10-10 05:51 UTC
Requires
- php: ^7.2
- laravel/framework: ^6.0
Requires (Dev)
- orchestra/testbench: ^4.0
- phpunit/phpunit: ^8.0
This package is auto-updated.
Last update: 2024-10-10 16:36:34 UTC
README
composer require pjmil/laravel-pixabay
Go to pixabay.com, register an account and get your API key
Add PIXABAY_API_KEY=<your_api_key>
to .env
$images = Pixabay::image([
'q' => 'animals+dancing',
'min_width' => 600,
'min_height' => 600,
'type' => 'photo',
]);
$videos = Pixabay::video([
'q' => 'animals+dancing',
]);
Refer to Pixabay's API docs for query options.