agonyz/php-lexica-art-api
最新稳定版本:0.0.4
Composer 安装命令:
composer require agonyz/php-lexica-art-api
包简介
lexica.art API php client
README 文档
README
A simple wrapper for lexica.art API, written in PHP.
Uses Lexica.Art API v1.
Quick Install
composer require agonyz/php-lexica-art-api
Basic usage of php-lexica-art-api client
<?php require_once __DIR__ . '/../vendor/autoload.php'; $client = new \LexicaArt\LexicaArtClient(); $images = $client->api('search')->searchImage('keyword'); /** * @var $image ImageObject */ foreach($images as $image) { $image->getGallery(); } // explore a given style $client->api('search')->searchImage($images[0]->getId());
From $client object, you have access to all available lexica.art api endpoints.
Currently only the search endpoint is supported.
统计信息
- 总下载量: 11
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-11-02