PHPackages                             copicake/copicake - 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. [Image &amp; Media](/categories/media)
4. /
5. copicake/copicake

ActiveLibrary[Image &amp; Media](/categories/media)

copicake/copicake
=================

Copicake, developer-first API and #NoCode tools to generate images on the fly

v1.0.1(3y ago)17MITPHP

Since Feb 1Pushed 3y ago1 watchersCompare

[ Source](https://github.com/Copicake/copicake-php)[ Packagist](https://packagist.org/packages/copicake/copicake)[ RSS](/packages/copicake-copicake/feed)WikiDiscussions master Synced today

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

Copicake PHP
============

[](#copicake-php)

🍰 Copicake, a data-driven image generating service to let you generate any social media material with just ONE CLICK.

- 🔗 Website:
- 📘 Official API Docs:

Installations
=============

[](#installations)

```
composer require copicake
```

Usage
=====

[](#usage)

Initialization
--------------

[](#initialization)

```
use Copicake\Copicake;

$copicake = new Copicake("YOUR_API_KEY");
```

Image
-----

[](#image)

### Create an image

[](#create-an-image)

#### create(`mixed` $data)

[](#createmixed-data)

```
try {
  $response = $copicake->image->create([
    'template_id' => 'jfwrFJdR3z1eF8BcEhSnAFyhxgOq',
    'changes' => [
      ['name' => 'text-9so09m', 'text' => 'hello world', 'fill' => '#ff0000'],
      ['name' => 'image-yeavh7', 'src' => 'https://your_website.com/test.png'],
    ],
    'options' => [
      'webhook_url' => 'https://your_website.com/webhook_url'
    ]
  ]);
}
catch(Exception $exception) {
  var_dump($exception);
}
```

### Get an image

[](#get-an-image)

#### get(`string` $renderingId)

[](#getstring-renderingid)

```
try {
  $response = $copicake->image->get('YOUR_RENDERING_ID');
}
catch(Exception $exception) {
  var_dump($exception);
}
```

### Get an image (long polling)

[](#get-an-image-long-polling)

#### getUntilFinished(`string` $renderingId)

[](#getuntilfinishedstring-renderingid)

Sometimes you may notice that your image is still under processing state, this is because the image is still being processed in the background by our servers.

In this way, we provide another handy method called getUntilFinished() to get the image until the image is ready.

Internally, this is just a wrapper of get() method with built-in retry mechanism. If after MAX\_RETRY\_TIMES and the image is still under processing state, we will throw an exception to let you know.

```
try {
  $response = $copicake->image->getUntilFinished('YOUR_RENDERING_ID');
}
catch(Exception $exception) {
  var_dump($exception);
}
```

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 75% 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 ~0 days

Total

2

Last Release

1247d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3139d92d938926c277bcdfc2a5317dfb751fd06c1821d027c9a779fe6670885e?d=identicon)[eragonj](/maintainers/eragonj)

---

Top Contributors

[![EragonJ](https://avatars.githubusercontent.com/u/68322?v=4)](https://github.com/EragonJ "EragonJ (6 commits)")[![semantic-release-bot](https://avatars.githubusercontent.com/u/32174276?v=4)](https://github.com/semantic-release-bot "semantic-release-bot (2 commits)")

---

Tags

copicakephpphp-library

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[goat1000/svggraph

Generates SVG graphs

135911.1k3](/packages/goat1000-svggraph)[gravatarphp/gravatar

Gravatar URL builder which is most commonly called as a Gravatar library

16653.6k2](/packages/gravatarphp-gravatar)

PHPackages © 2026

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