PHPackages                             ourcodeworld/name-that-color - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. ourcodeworld/name-that-color

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

ourcodeworld/name-that-color
============================

A non-official PHP port of the NTC JS library to find out the name of the closest matching color.

37163.5k↓12.4%17[2 PRs](https://github.com/ourcodeworld/name-that-color/pulls)PHP

Since Aug 3Pushed 2y ago2 watchersCompare

[ Source](https://github.com/ourcodeworld/name-that-color)[ Packagist](https://packagist.org/packages/ourcodeworld/name-that-color)[ RSS](/packages/ourcodeworld-name-that-color/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

What is Name That Color
=======================

[](#what-is-name-that-color)

This library is a PHP port of the known JS Script to find out the closest color name by its hex code.

Installation
============

[](#installation)

Name That Color can be used either with or without Composer.

With Composer
-------------

[](#with-composer)

The preferred way to use name-that-color is with Composer. Execute the following command to install this package as a dependency in your project:

```
composer require ourcodeworld/name-that-color
```

Without Composer
----------------

[](#without-composer)

If you don't use composer, you can still use the wrapper. Download the [ColorInterpreter.php](https://github.com/ourcodeworld/name-that-color/blob/master/src/ColorInterpreter.php) class from the repository and then use `require_once` to import it in your code:

```
