PHPackages                             tigroid3/php-imaginary - 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. tigroid3/php-imaginary

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

tigroid3/php-imaginary
======================

SDK for https://github.com/h2non/imaginary

1.03(6y ago)16.5k↑271.4%1BSD-3-ClausePHPPHP &gt;=7.0

Since May 24Pushed 6y ago1 watchersCompare

[ Source](https://github.com/tigroid3/php-imaginary)[ Packagist](https://packagist.org/packages/tigroid3/php-imaginary)[ Docs](https://github.com/tigroid3/php-imaginary)[ RSS](/packages/tigroid3-php-imaginary/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (1)Dependencies (1)Versions (5)Used By (0)

php-imaginary
=============

[](#php-imaginary)

SDK for

Either run

```
$ composer require tigroid3/php-imaginary

```

or add

```
"tigroid3/php-imaginary": "*"

```

to the `require` section of your `composer.json` file.

Basic usage:
------------

[](#basic-usage)

Set service uri

```
$client = new ImaginaryClient();
$client->setServiceUri('http://imaginary:9005');
```

Image processing
----------------

[](#image-processing)

```
$imaginaryResource = Imaginary::new()
    ->setUploadFilePath('/home/user/test.jpg')
    ->smartCrop(300, 300)
    ->zoom(2)
    ->convert(Imaginary::FORMAT_WEBP)
    ->execute();

//save new image
file_put_contents('test.webp', $imaginaryResource->getContent());
//or
move_uploaded_file($imaginaryResource->getPathProcessedFile(), 'test.webp');
```

Image info
----------

[](#image-info)

```
$imageInfo = Imaginary::new()
    ->setUploadFilePath('/home/user/tmp/test.jpg')
    ->info();
```

Example response

```
Array
(
    [width] => 3840
    [height] => 2400
    [type] => jpeg
    [space] => srgb
    [hasAlpha] =>
    [hasProfile] =>
    [channels] => 3
    [orientation] => 0
)
```

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity54

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

Total

4

Last Release

2194d ago

### Community

Maintainers

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

---

Top Contributors

[![tigroid3](https://avatars.githubusercontent.com/u/10440951?v=4)](https://github.com/tigroid3 "tigroid3 (8 commits)")

---

Tags

phpsdkimaginaryh2non

### Embed Badge

![Health badge](/badges/tigroid3-php-imaginary/health.svg)

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

###  Alternatives

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.3k543.5M2.6k](/packages/aws-aws-sdk-php)[xeroapi/xero-php-oauth2

Xero official PHP SDK for oAuth2 generated with OpenAPI spec 3

1054.7M18](/packages/xeroapi-xero-php-oauth2)[resend/resend-php

Resend PHP library.

617.2M43](/packages/resend-resend-php)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

273.0k](/packages/eslazarev-wildberries-sdk)[onesignal/onesignal-php-api

A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com

34216.9k2](/packages/onesignal-onesignal-php-api)

PHPackages © 2026

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