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

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

muravian/php-image-resize
=========================

Display image that are not in public folder with php. Real time View, Scale / Resize, Crop

1.0.3(3y ago)023MITPHPPHP &gt;=7.4.0

Since Oct 7Pushed 3y ago1 watchersCompare

[ Source](https://github.com/AnwarQasem/PhpImageResize)[ Packagist](https://packagist.org/packages/muravian/php-image-resize)[ RSS](/packages/muravian-php-image-resize/feed)WikiDiscussions master Synced 1mo ago

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

If you don't want to crop, resize or just show images from your server.

Install
=======

[](#install)

```
composer require muravian/php-image-resize
```

Features
========

[](#features)

- Show Images
- Resize image based on Width
- Resize image based on Height
- Resize &amp; Crop image

Usage
-----

[](#usage)

### Show Image

[](#show-image)

```
use Muravian\PhpImageResize\ImageResize;

$image = new ImageResize();
$image->setPath('../path/to/your/file');
echo $image->render();
```

### Resize Image based on Width

[](#resize-image-based-on-width)

```
use Muravian\PhpImageResize\ImageResize;

$image = new ImageResize();
$image->setPath('../path/to/your/file');
$image->setWidth(500);
echo $image->render();
```

### Resize Image based on Height

[](#resize-image-based-on-height)

```
use Muravian\PhpImageResize\ImageResize;

$image = new ImageResize();
$image->setPath('../path/to/your/file');
$image->setHeight(500);
echo $image->render();
```

### Resize &amp; Crop Image

[](#resize--crop-image)

```
use Muravian\PhpImageResize\ImageResize;

$image = new ImageResize();
$image->setPath('../path/to/your/file');
$image->setWidth(500);
$image->setHeight(500);
echo $image->render();
```

Thanks to : [MURAVIAN](https://muravian.com)

Used on : [WikiAnimals](https://wikianimals.eu)

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

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

Total

4

Last Release

1318d ago

### Community

Maintainers

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

---

Top Contributors

[![AnwarQasem](https://avatars.githubusercontent.com/u/3440041?v=4)](https://github.com/AnwarQasem "AnwarQasem (14 commits)")

---

Tags

phpimageresizescalecropshow

### Embed Badge

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

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

###  Alternatives

[gumlet/php-image-resize

PHP class to re-size and scale images

1.2k5.7M54](/packages/gumlet-php-image-resize)[stefangabos/zebra_image

A single-file, lightweight PHP library designed for efficient image manipulation featuring methods for modifying images and applying filters

141110.4k6](/packages/stefangabos-zebra-image)[bodom78/kohana-imagefly

Create resized / cropped images directly through url parameters.

5517.0k](/packages/bodom78-kohana-imagefly)[somehow-digital/typo3-media-processing

Media Processing

101.1k](/packages/somehow-digital-typo3-media-processing)

PHPackages © 2026

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