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

ActivePackage

picsmize/picsmize-php
=====================

Picsmize - Image Optimizer

v1.0(3y ago)091mitPHPPHP &gt;=5.3.0

Since Jul 19Pushed 3y ago1 watchersCompare

[ Source](https://github.com/picsmize/picsmize-php)[ Packagist](https://packagist.org/packages/picsmize/picsmize-php)[ RSS](/packages/picsmize-picsmize-php/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

### Quick Installation

[](#quick-installation)

To install the Picsmize library, Here is how you can install using command line,

```
$ composer require picsmize/picsmize-php
```

### Configuration

[](#configuration)

Load the Picsmize library into your page

```
require_once 'Picsmize/Picsmize.php';
```

If you don't have your API Key just yet, you can [Sign Up](https://picsmize.com/register) for a free account. And That's it! Start optimizing..!

### Quick Example

[](#quick-example)

This Picsmize PHP library allows all the operations available with the [Picsmize API](https://picsmize.com/document/introduction). The following example uses image `fetch`, `compress`, `resize` and `filter` with different mode and get the output file directly with `toJSON()` method:

```
/**
* Initialize `Picsmize` Class
*/

$picsmize = new Picsmize('your-api-key');

/**
* Use of fetch() method
*/

$picsmize->fetch('https://www.website.com/image.jpg')

/**
* Use of compress() method with medium mode
*/

->compress(Picsmize::COMPRESS_LOW)

/**
* Use of resize() method with auto mode
* and width set to 400
*/

->resize(Picsmize::RESIZE_AUTO, array(
'width' => 400
))

/**
* Use of filter() blur method with gaussian mode
* and value set to 10
*/

->filter(Picsmize::FILTER_BLUR, array(
'mode' => 'gaussian',
'value' => 10
))

/**
* Call toJSON() on the final step and return the JSON response
*/

->toJSON(function ($response) {
/**
* You'll find the full JSON metadata array within the `$response` variable.
* Remember to always check if the `status` property is set to `true`.
*/

if ($response['status'] == false) {
throw new Exception($response['message']);
}

print_r($response);
});
```

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 66.7% 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

1399d ago

### Community

Maintainers

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

---

Top Contributors

[![jaronsmith2006](https://avatars.githubusercontent.com/u/2031699?v=4)](https://github.com/jaronsmith2006 "jaronsmith2006 (2 commits)")[![picsmize](https://avatars.githubusercontent.com/u/109585947?v=4)](https://github.com/picsmize "picsmize (1 commits)")

### Embed Badge

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

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

PHPackages © 2026

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