PHPackages                             mkhab7/deepai - 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. mkhab7/deepai

ActiveLibrary[API Development](/categories/api)

mkhab7/deepai
=============

a php library for using deepai.org apis

1.0.3(4y ago)21033MITPHPPHP &gt;=8.0

Since Nov 4Pushed 4y ago1 watchersCompare

[ Source](https://github.com/mkhab7/deepai)[ Packagist](https://packagist.org/packages/mkhab7/deepai)[ RSS](/packages/mkhab7-deepai/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (4)Dependencies (2)Versions (5)Used By (0)

deepai
======

[](#deepai)

A library for using [deepai.org](http://deepai.org) api

install
=======

[](#install)

via composer :
--------------

[](#via-composer-)

> composer require mkhab7/deepai

usage
=====

[](#usage)

```
use Solid\Deepai\Deepai;

require_once 'vendor/autoload.php';
$deepai = new Deepai('api key');

$deepai->setImage('image url');
// you can use a url or a local file path , for example :

$deepai->setImage(new CURLFile('image.jpg'));

$deepai->colorize();

$result = $deepai->apply();

$url = $result->url();

$result->save('output.jpg');

/*
 * you can get the all response data from this method
 */
$allResponseData = $result->getData();
```

### You can adjust the text as needed

[](#you-can-adjust-the-text-as-needed)

example :

```
$deepai->setText('cat');
$deepai->textToImage();
```

### if output is a text you can use "output"

[](#if-output-is-a-text-you-can-use-output)

example :

```
$deepai->setText('cat');
$textOutput = $deepai->textGeneration()->apply()->output();//returns output url/text
```

### set a custom method :

[](#set-a-custom-method-)

```
$deepai->setImage(new CURLFile('image.jpg'))

        ->method('deepdream') //custom method

        ->apply();
```

All the methods you can use
---------------------------

[](#all-the-methods-you-can-use)

- colorize
- toonify
- superResolution
- textToImage
- textGeneration
- nudityDetection
- waifu2x

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity58

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 ~42 days

Total

4

Last Release

1528d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/de454d685682eeda48b19377390011fdc0498e1b9ca4fae5cb78a0e933d59521?d=identicon)[mkhab7](/maintainers/mkhab7)

---

Top Contributors

[![mkhab7](https://avatars.githubusercontent.com/u/83933318?v=4)](https://github.com/mkhab7 "mkhab7 (56 commits)")

---

Tags

apicolorizationdeepaiimagephptoonify

###  Code Quality

TestsPest

### Embed Badge

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

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

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[convertkit/convertkitapi

Kit PHP SDK for the Kit API

2167.1k1](/packages/convertkit-convertkitapi)[mapado/rest-client-sdk

Rest Client SDK for hydra API

1125.9k2](/packages/mapado-rest-client-sdk)

PHPackages © 2026

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