PHPackages                             pluritech/image-php - 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. pluritech/image-php

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

pluritech/image-php
===================

This package has the aim of upload images (only gif, jpg and png for now) and resize automatically them according with configuration pre-configured.

1.1.4(7y ago)0206MITPHPPHP &gt;=5.3.3

Since Jun 14Pushed 7y ago2 watchersCompare

[ Source](https://github.com/Pluritech/image-php)[ Packagist](https://packagist.org/packages/pluritech/image-php)[ Docs](https://github.com/Pluritech/image-php)[ RSS](/packages/pluritech-image-php/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (8)Used By (0)

pluritech-image-php
===================

[](#pluritech-image-php)

Image Upload for PHP from Base 64 (v1)
======================================

[](#image-upload-for-php-from-base-64-v1)

This repository contains the open source PHP that allows image upload from your PHP app with pre-configured size.

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

[](#installation)

The Library can be installed with [Composer](https://getcomposer.org/). Run this command:

```
composer require pluritech/image-php
```

Usage
-----

[](#usage)

Simple use example.

```
require_once __DIR__ . '/vendor/autoload.php'; // change path as needed

use ImagePhp\GeneratorImageSDK as GeneratorImageSDK;
use \Exception;
use ImagePhp\Exception\ImageException;

$url_path = //web path where the picture will be uploaded
$dir =  //path where the picture will be uploaded

$config['url']      = $url_path;
$config['dir']           = $dir;
$config['width']         = 650;//pre-configured width to be set on image
$config['height']        = 310;//pre-configured height to be set on image
$config['thumb']         = true;// boolean type - specific if that image has thumb copy image as well
$config['thumb_width']   = 25;//pre-configured width to be set on thumb image
$config['thumb_height']  = 15;//pre-configured height to be set on thumb image
$config['water_mark']    = false;//boolean type - specific if that image will have water mark. If true, the water mark path must be send as second parameter.
$config['transparency']  = false;
$config['square']        = true;// boolean type - specific if that image has square copy image as well
$config['square_width']  = 200;//pre-configured width to be set on square image
$config['square_height'] = 200;//pre-configured height to be set on square image

generatorSDK = new GeneratorImageSDK($config);

try{
	$base64 = 'base 64 here' // on this site you can get 64 base from a image - https://www.base64-image.de/
	$photo = getGenerateImageSDK()->generatePhoto($base64);
	getGenerateImageSDK()->setPicture($photo);
	$photo = getGenerateImageSDK()->automaticResize();
	getGenerateImageSDK()->setPicture($photo);
	$photo = getGenerateImageSDK()->createImages();

} catch (ImageException $e) {
    $photo['error'] = array(
        "code"        => 'F'.sprintf("%02d", $e->getCode()),
        "status"      => $e->getStatus(),
        "description" => $e->getMessage()
    );

    echo $photo;
}
catch (Exception $e) {
    $photo['error'] = array(
        "code"        => 'F'.sprintf("%02d", $e->getCode()),
        "status"      => 'PictureError',
        "description" => $e->getMessage()
    );
    echo $photo;
}
echo $photo;
}

```

Documentation
-------------

[](#documentation)

In progress.

Tests
-----

[](#tests)

In progress.

Contributing
------------

[](#contributing)

Feel free to make your pull request, chip in to suggestion or report issues.

License
-------

[](#license)

MIT © [Guilherme Valentim e Natália Gonçalves Machado](mailto:nathygmachado@gmail.com)

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 50% 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 ~13 days

Total

7

Last Release

2814d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/55c08bc4c394aa6c1510e83e25eb69d7040b03cdf1892d15efdfa5610725147c?d=identicon)[Guilherme Augusto Silva Valentim](/maintainers/Guilherme%20Augusto%20Silva%20Valentim)

![](https://www.gravatar.com/avatar/6c08ead1466e2abf3900a0b5d63a5d19ab23ad4bedd8f858b6a3372edf77c4af?d=identicon)[nathygmachado](/maintainers/nathygmachado)

---

Top Contributors

[![nathygmachado](https://avatars.githubusercontent.com/u/34738596?v=4)](https://github.com/nathygmachado "nathygmachado (1 commits)")[![valentim-guilherme](https://avatars.githubusercontent.com/u/4029126?v=4)](https://github.com/valentim-guilherme "valentim-guilherme (1 commits)")

---

Tags

phpimagespluritechautomatic resize

### Embed Badge

![Health badge](/badges/pluritech-image-php/health.svg)

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

###  Alternatives

[tihiy-production/php-image-compressor

ImageCompressor - this is an easy way to compress images on the fly

243.8k](/packages/tihiy-production-php-image-compressor)

PHPackages © 2026

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