PHPackages                             cedricziel/leonardoai-php - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. cedricziel/leonardoai-php

ActiveLibrary[API Development](/categories/api)

cedricziel/leonardoai-php
=========================

Leonardo.ai SDK for PHP

v1.0.0(1y ago)1925MITPHPPHP ^8.3

Since Jul 12Pushed 1y ago1 watchersCompare

[ Source](https://github.com/cedricziel/leonardoai-php)[ Packagist](https://packagist.org/packages/cedricziel/leonardoai-php)[ RSS](/packages/cedricziel-leonardoai-php/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

leonardoai-php
==============

[](#leonardoai-php)

Leonardo AI SDK for PHP

Install
-------

[](#install)

```
composer require cedricziel/leonardoai-php
```

Usage
-----

[](#usage)

You need an API key from Leonardo

### Client creation

[](#client-creation)

```
$authenticationRegistry = new AuthenticationRegistry([new ApiKeyAuthentication('my-api-key')]);
$client = Client::create(null, [$authenticationRegistry]);
```

### Get current user

[](#get-current-user)

```
$client->getUserSelf();
```

### Image Generation: Create

[](#image-generation-create)

```
$body = GenerationsPostBody();
$body->setPrompt('A cat on a tree');
$res = $client->createGeneration($body);
```

License
-------

[](#license)

MIT

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance33

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

671d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2ac8297e12671d91305ec01ab56add8cb141fa82d678ba96f0012eeb7f88ea0c?d=identicon)[cedricziel](/maintainers/cedricziel)

---

Top Contributors

[![cedricziel](https://avatars.githubusercontent.com/u/418970?v=4)](https://github.com/cedricziel "cedricziel (13 commits)")

###  Code Quality

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/cedricziel-leonardoai-php/health.svg)

```
[![Health](https://phpackages.com/badges/cedricziel-leonardoai-php/health.svg)](https://phpackages.com/packages/cedricziel-leonardoai-php)
```

###  Alternatives

[jolicode/slack-php-api

An up to date PHP client for Slack's API

2534.4M12](/packages/jolicode-slack-php-api)[jolicode/harvest-php-api

An up to date PHP client for Harvest's API

2259.9k](/packages/jolicode-harvest-php-api)[shipstream/ups-rest-php-sdk

PHP SDK for UPS REST API

2253.7k](/packages/shipstream-ups-rest-php-sdk)[jikan/jikan-php

PHP client for jikan rest

291.1k](/packages/jikan-jikan-php)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
