agonyz / php-lexica-art-api
lexica.art API php client
Installs: 11
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 1
Forks: 1
Open Issues: 0
pkg:composer/agonyz/php-lexica-art-api
Requires
- php: ^7.4 || ^8.0
- ext-json: *
- guzzlehttp/guzzle: ^7.5
This package is auto-updated.
Last update: 2025-09-29 03:00:04 UTC
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.