justraviga/laravel-pexels 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

justraviga/laravel-pexels

最新稳定版本:0.1.8

Composer 安装命令:

composer require justraviga/laravel-pexels

包简介

Pexels API client for Laravel

README 文档

README

Provides access to Pexels API for Laravel projects

Stable Version Unstable Version Total Downloads License

Table of contents

Installation

To get the latest version of Laravel Pexels, simply require the project using Composer:

$ composer require justraviga/laravel-pexels

Or manually update require block of composer.json and run composer update.

{
    "require": {
        "justraviga/laravel-pexels": "^0.1"
    }
}

Using

use JustRaviga\Pexels\Clients\PhotoApiClient;
use JustRaviga\Pexels\Facades\Pexels;

$client = new PhotoApiClient(); // Good for controller method/artisan command handle()/job handle() dependency injection
// OR
$client = Pexels::photos();

$response = $client->search('cats');

foreach ($response->photos as $photo){
    $photo->width;
    $photo->height;
    $photo->url;
    $photo->src->medium;
}

统计信息

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

GitHub 信息

  • Stars: 5
  • Watchers: 1
  • Forks: 4
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-10-18

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固