PHPackages                             hamidatyabi/image-library - 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. hamidatyabi/image-library

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

hamidatyabi/image-library
=========================

Library for image manipulation

1.0.0(6y ago)1317MITPHPCI failing

Since Nov 18Pushed 6y ago1 watchersCompare

[ Source](https://github.com/hamidatyabi/image-library-php)[ Packagist](https://packagist.org/packages/hamidatyabi/image-library)[ RSS](/packages/hamidatyabi-image-library/feed)WikiDiscussions master Synced 6d ago

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

image-library
=============

[](#image-library)

it's for convert image to base64 and decode base64 to image

Binary Image to Base64
======================

[](#binary-image-to-base64)

```
try{
    $ImageEncoder = new \HamidAtyabi\ImageLibrary\ImageEncoder(array("jpeg", "gif", "png"));
    $result = $ImageEncoder->encode($binaryImage);
    var_dump(($result));

} catch (ImageLibrary\Exceptions\LibraryNotFound $ex) {
    echo ($ex->getMessage());
} catch (ImageLibrary\Exceptions\ContentTypeNotValid $ex) {
    echo ($ex->getMessage());
} catch (ImageLibrary\Exceptions\FileSizeTooLarge $ex) {
    echo ($ex->getMessage());
} catch (ImageLibrary\Exceptions\ExtensionNotAllow $ex) {
    echo ($ex->getMessage());
}
```

Base64 to Image
===============

[](#base64-to-image)

```
try{
    $base64EncodedImage = "/9j/4AAQSkZJRgABAQAAAQA...";
    $ImageDecoder = new \HamidAtyabi\ImageLibrary\ImageDecoder($base64EncodedImage, array("jpeg", "gif", "png"));
    $result = $ImageDecoder->upload("/var/www/html/uploads/");
    var_dump($result);

} catch (DirectoryNotPermission $ex) {
    echo ($ex->getMessage());
} catch (DirectoryNotValid $ex) {
    echo ($ex->getMessage());
} catch (ImageLibrary\Exceptions\LibraryNotFound $ex) {
    echo ($ex->getMessage());
} catch (ImageLibrary\Exceptions\ContentTypeNotValid $ex) {
    echo ($ex->getMessage());
} catch (ImageLibrary\Exceptions\FileSizeTooLarge $ex) {
    echo ($ex->getMessage());
} catch (ImageLibrary\Exceptions\ExtensionNotAllow $ex) {
    echo ($ex->getMessage());
} catch (ImageLibrary\Exceptions\Base64Format $ex) {
    echo ($ex->getMessage());
}
```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity57

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

2371d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3f54844715b50e78cc1497c221d5fbda8c96b911aabe966cac1d06a77dcba0f4?d=identicon)[hamidatyabi](/maintainers/hamidatyabi)

---

Top Contributors

[![hamidatyabi](https://avatars.githubusercontent.com/u/36162354?v=4)](https://github.com/hamidatyabi "hamidatyabi (1 commits)")

---

Tags

imagebase64encoderdecoder

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/hamidatyabi-image-library/health.svg)

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

###  Alternatives

[intervention/image

PHP Image Processing

14.3k194.3M2.2k](/packages/intervention-image)[league/glide

Wonderfully easy on-demand image manipulation library with an HTTP based API.

2.6k51.2M116](/packages/league-glide)[liip/imagine-bundle

This bundle provides an image manipulation abstraction toolkit for Symfony-based projects.

1.7k38.3M217](/packages/liip-imagine-bundle)[spatie/image

Manipulate images with an expressive API

1.4k54.4M138](/packages/spatie-image)[melihovv/base64-image-decoder

A base64 image decoder

46137.0k](/packages/melihovv-base64-image-decoder)[intervention/image-laravel

Laravel Integration of Intervention Image

1496.5M102](/packages/intervention-image-laravel)

PHPackages © 2026

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