承接 minnur/pixabay-php-api 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

minnur/pixabay-php-api

最新稳定版本:1.0

Composer 安装命令:

composer require minnur/pixabay-php-api

包简介

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

README 文档

README

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/

统计信息

  • 总下载量: 17.29k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 19
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-06-11