PHPackages                             doubleplus/imagepig - 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. doubleplus/imagepig

ActiveLibrary[API Development](/categories/api)

doubleplus/imagepig
===================

A composer library for Image Pig, the API for AI images.

1.0.8(1y ago)1353MITPHPPHP &gt;=7

Since Oct 14Pushed 1y agoCompare

[ Source](https://github.com/double-plus/imagepig-php)[ Packagist](https://packagist.org/packages/doubleplus/imagepig)[ Docs](https://imagepig.com/)[ RSS](/packages/doubleplus-imagepig/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (10)Used By (0)

imagepig
========

[](#imagepig)

[PHP package](https://packagist.org/packages/doubleplus/imagepig) for [Image Pig](https://imagepig.com/), the API for AI images.

Installation
------------

[](#installation)

```
composer require doubleplus/imagepig

```

Example of usage
----------------

[](#example-of-usage)

```
use ImagePig\ImagePig;

# create instance of API (put here your actual API key)
$imagepig = ImagePig('your-api-key');

# call the API with a prompt to generate an image
$result = $imagepig->xl('cute piglet running on a green garden');

# save image to a file
$result->save('cute-piglet.jpeg');

# or access image data (binary string)
$result->data;

# or access image as a GDImage object (needs to have the GD extension installed)
$result->image
```

Contact us
----------

[](#contact-us)

Something does not work as expected? Feel free to [send us a message](https://imagepig.com/contact/), we are here for you.

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance35

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity45

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

Every ~3 days

Total

9

Last Release

602d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/10660247?v=4)[doubleplus](/maintainers/doubleplus)[@doubleplus](https://github.com/doubleplus)

---

Top Contributors

[![dqd](https://avatars.githubusercontent.com/u/574700?v=4)](https://github.com/dqd "dqd (12 commits)")

---

Tags

apiAI images

### Embed Badge

![Health badge](/badges/doubleplus-imagepig/health.svg)

```
[![Health](https://phpackages.com/badges/doubleplus-imagepig/health.svg)](https://phpackages.com/packages/doubleplus-imagepig)
```

###  Alternatives

[m165437/laravel-blueprint-docs

API Blueprint Renderer for Laravel

22879.8k](/packages/m165437-laravel-blueprint-docs)

PHPackages © 2026

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