Download the PHP package fredtux/photo-color-names without Composer

On this page you can find all versions of the php package fredtux/photo-color-names. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package photo-color-names

PhotoColorNames

Heterogeneous libraries integrator for image color extraction and naming

Usage

A simple example with comments

Adding new libraries

By Source

Composer

Just add it to composer.json and install. Composer will integrate it easily into the project.

Packagist project

Non-composer

It is recommended, though not enforced, to place it into the NoComposer folder under the ColorNames or PhotoColors folders depending on the purpose of the new library.

By Type

Color Extractors

Libraries
  1. An adapter must be created in src/PhotoColors/Adapters
  2. The adapter must implement iPhotoColorExtractor
    • has a function called getColors
    • has 1 parameter
      • $photoColorExtractorOptions of type PhotoColorExtractorOptions
    • implements all the logic necessary to issue the same type of results like the examples from 5 (no return type enforced since it's designed to run on PHP >= 5.6)
  3. The action of constructing an object of the adapter's type must be placed in a new case under the switch from the method getColorExtractor from PhotoColorFactory
  4. The new library can be used by creating an object from the factory

  5. Examples
    • PhotoColorNames\PhotoColors\Adapters\ColorThiefAdapter
    • GetMostCommonColorsAdapter

      Extractor options

      New extractor options classes can be specified, but have to be paired with the color extractor class 1

      Color Names

      Libraries
  6. An adapter must be created in src/ColorNames/Adapters
  7. The adapter must implement iPhotoColorNamesGiver
    • has a function called getName
    • has 2 parameters
      • $colorName of type ColorData
      • $nameList of type array
    • implements all the logic necessary to issue the same type of results like the example from 5 (no return type enforced since it's designed to run on PHP >= 5.6)
  8. The action of constructing an object of the adapter's type must be placed in a new case under the switch from the method getColorNameGiver from ColorNamesFactory
  9. The new library can be used by creating an object from the factory

  10. Examples
    • PhotoColorNames\ColorNames\Adapters\NtcAdapter
      Name lists

      It is recommended, though not enforced, to add new name lists to NamePool as a static method that returns an array which has the key as the color's RGB hex code and the value as an array containing the name

License

This project is released under MIT license.
In this project there are algorithms from various sources. I do my best to respect the code license and give credit to the owner, but if you think your license has been breached, please feel free to open an issue and I'll solve it as soon as possible.


All versions of photo-color-names with dependencies

PHP Build Version
Package Version
Requires ksubileau/color-thief-php Version ~1.3
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package fredtux/photo-color-names contains the following files

Loading the files please wait ....