PHPackages                             pomirleanu/image-colors - 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. pomirleanu/image-colors

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

pomirleanu/image-colors
=======================

Simple way to get the colors from a given image, will give tou the percentage and the colors hex.

1.0.2(9y ago)0134MITPHPPHP ~5.6|~7.0

Since Sep 8Pushed 9y ago1 watchersCompare

[ Source](https://github.com/pomirleanu/image-colors)[ Packagist](https://packagist.org/packages/pomirleanu/image-colors)[ Docs](https://github.com/pomirleanu/image-colors)[ RSS](/packages/pomirleanu-image-colors/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (4)Versions (5)Used By (0)

pomirleanu/image-colors
=======================

[](#pomirleanuimage-colors)

[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)

Simple way to get the colors from a given image, will give tou the percentage and the colors hex.

Install
-------

[](#install)

Via Composer

```
$ composer require pomirleanu/image-colors
```

Next, you should add the ImageColorsServiceProvider to the providers array of your config/app.php configuration file:
---------------------------------------------------------------------------------------------------------------------

[](#next-you-should-add-the-imagecolorsserviceprovider-to-the-providers-array-of-your-configappphp-configuration-file)

```
Pomirleanu\ImageColors\ImageColorsServiceProvider::class,
```

Usage | This is just a simple example
-------------------------------------

[](#usage--this-is-just-a-simple-example)

```
namespace ****;
use Illuminate\Http\Request;
use Pomirleanu\ImageColors;

class ImageClass
{
    /**
     * @var ImageColors
     */
    private $imageColors;

    /**
     * ImagesController constructor.
     * @param ImageColors $imageColors
     */
    public function __construct(ImageColors $imageColors)
    {
        $this->imageColors = $imageColors;
    }

    public function getColors(Request $request){
        if ($request->hasFile('image')) {
                $colors = $this->imageColors->get($request->image);

                //Do what you want with the colors
        }
    }
}
```

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

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CONDUCT](CONDUCT.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- \[Pomirleanu Florentin Cristinel\]\[\]

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity61

Established project with proven stability

 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

3

Last Release

3581d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2902488?v=4)[Pomirleanu Florentin Cristinel](/maintainers/pomirleanu)[@pomirleanu](https://github.com/pomirleanu)

---

Top Contributors

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

---

Tags

image-colorspomirleanu

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/pomirleanu-image-colors/health.svg)

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

###  Alternatives

[intervention/image-laravel

Laravel Integration of Intervention Image

1558.1M160](/packages/intervention-image-laravel)[ralphjsmit/laravel-glide

Auto-magically generate responsive images from static image files.

4923.6k5](/packages/ralphjsmit-laravel-glide)[nikkanetiya/laravel-color-palette

Laravel Wrapper for `ksubileau/color-thief-php`. Grabs the dominant color or a representative color palette from an image. Uses PHP and GD or Imagick.

3312.7k](/packages/nikkanetiya-laravel-color-palette)

PHPackages © 2026

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