PHPackages                             jalaljaberi/negarity - 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. jalaljaberi/negarity

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

jalaljaberi/negarity
====================

Negarity — a modern, extensible image processing and graphics manipulation library for PHP.

00PHP

Since Oct 29Pushed 6mo agoCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

🖼️ Negarity
===========

[](#️-negarity)

**Negarity** is a modern, extensible, and high-performance image processing library for PHP.
It aims to become the **de facto standard** for graphics manipulation, combining the flexibility of GD, the power of Imagick, and the elegance of a fluent API.

---

🚀 Features
----------

[](#-features)

- 🧱 Modular architecture — Core, Drivers, Operations, Effects, and more.
- ⚙️ Multi-backend support (GD, Imagick, Vips, custom).
- 🎨 Fluent API for chaining image transformations.
- 🧠 Advanced tools: Extractors, Converters, Compositors, Generators.
- 🧩 Fully PSR-4 compliant, testable, and extensible.
- ⚡ PHP 8.2+ optimized.

---

🧰 Installation
--------------

[](#-installation)

```
composer require jalaljaberi/negarity
```

---

🧪 Quick Start
-------------

[](#-quick-start)

```
use Negarity\Core\Image;
use Negarity\Effects\Artistic\Sepia;
use Negarity\Operations\Geometry\Resize;

$image = Image::fromFile('photo.jpg')
    ->apply(new Resize(800, 600))
    ->apply(new Sepia())
    ->save('output.jpg');
```

Or using the processing pipeline:

```
use Negarity\Pipeline\ImageProcessor;
use Negarity\Operations\Geometry\Resize;
use Negarity\Effects\Artistic\Vignette;

$processor = (new ImageProcessor())
    ->add(new Resize(1024, 768))
    ->add(new Vignette());

$processor->run('input.jpg', 'result.jpg');
```

---

🧱 Architecture Overview
-----------------------

[](#-architecture-overview)

Negarity follows a **layered architecture**:

```
Core → Driver → IO → Generators → Operations → Extractors → Converters →
Compositors → Analyzers → Effects → Pipeline

```

Each layer serves a specific purpose, from low-level pixel manipulation to high-level artistic effects.

---

🧑‍💻 Development
---------------

[](#‍-development)

Clone the repository and install dependencies:

```
git clone https://github.com/jalaljaberi/negarity.git
cd negarity
composer install
```

Run tests:

```
composer test
```

---

🧩 Contributing
--------------

[](#-contributing)

Contributions are welcome!
Open issues, submit PRs, or suggest new effects and backends.

Please follow [PSR-12](https://www.php-fig.org/psr/psr-12/) coding standards.

---

📄 License
---------

[](#-license)

MIT License — see [LICENSE](LICENSE) for details.

---

🌟 Author
--------

[](#-author)

Developed with ❤️ by **Your Name**
Follow me on [GitHub](https://github.com/jalaljaberi)

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance47

Moderate activity, may be stable

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity13

Early-stage or recently created project

 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.

### Community

Maintainers

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

---

Top Contributors

[![JalalJaberi](https://avatars.githubusercontent.com/u/2640561?v=4)](https://github.com/JalalJaberi "JalalJaberi (5 commits)")

### Embed Badge

![Health badge](/badges/jalaljaberi-negarity/health.svg)

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

###  Alternatives

[milon/barcode

Barcode generator like Qr Code, PDF417, C39, C39+, C39E, C39E+, C93, S25, S25+, I25, I25+, C128, C128A, C128B, C128C, 2-Digits UPC-Based Extention, 5-Digits UPC-Based Extention, EAN 8, EAN 13, UPC-A, UPC-E, MSI (Variation of Plessey code)

1.5k13.3M39](/packages/milon-barcode)[bkwld/croppa

Image thumbnail creation through specially formatted URLs for Laravel

510496.0k23](/packages/bkwld-croppa)[char0n/ffmpeg-php

PHP wrapper for FFmpeg application

495225.1k1](/packages/char0n-ffmpeg-php)[goat1000/svggraph

Generates SVG graphs

132849.6k3](/packages/goat1000-svggraph)[cohensive/embed

Media Embed (for Laravel or as a standalone).

120370.4k](/packages/cohensive-embed)[netresearch/rte-ckeditor-image

Image support in CKEditor for the TYPO3 ecosystem - by Netresearch

63991.3k4](/packages/netresearch-rte-ckeditor-image)

PHPackages © 2026

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