Download the PHP package fonil/coloreeze without Composer

On this page you can find all versions of the php package fonil/coloreeze. 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 coloreeze

Integration Tests

coloreeze

A PHP library to deal with color conversions

[TOC]

Summary

Coloreeze is a PHP library to deal with color conversions.

Currently it supports the following color spaces:

Features

Additionally this library contains some useful methods to:

Installation

You can install the package via composer:

Usage

Coloreeze package contains independent color classes, all of them implementing a Color interface:

Color Factory

ColorFactory::fromString(string $input): Color

The ColorFactory class allows you to create a color instance from any valid input string.

If the input string is not a valid color representation it throws an InvalidInput exception.

Color Interface

__toString(): string

Cast the color value to a string:

fromString(string $input): Color

Parses an input string and returns accordingly the related Color implementation:

It throws an InvalidInput exception in case of the string is not well formed or unsupported color.

getValue(): mixed

Returns the Color value. On single-value colors, this method returns a primitive value (int or string) but on composite ones it returns an array with color's components:

toCIELab(): ColorCIELab

Converts a color to a CIELab:

toCMYK(): ColorCMYK

Converts a color to a CMYK:

toHex(): ColorHex

Converts a color to a Hex:

toHSB(): ColorHSB

Converts a color to a HSB/HSV:

toHSL(): ColorHSL

Converts a color to a HSL:

toInt(): ColorInt

Converts a color to an Int:

toRGBA(): ColorRGBA

toXYZ(): ColorXYZ

toComplementary(): Color

toGreyscale(): Color

adjustBrightness(int $steps): Color

distanceCIE76(Color $color): float

Testing

You can run the test suite via composer:

This Composer script runs the PHPUnit command with PCOV support in order to generate a Code Coverage report.

Unit Tests

This library provides a PHPUnit testsuite with 1434 unit tests and 2670 assertions:

Code Coverage

Here is the Code Coverage report summary:

Full report will be generated in ./reports/coverage folder.

QA

Static Analyzer

You can check this library with PHPStan:

This command generates the following report:

PHP Parallel Lint

You can check this library with PHP Parallel Lint:

This command generates the following report:

PHP Insights

You can check this library with PHP Insights:

This command generates the following summary:

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities:

PLEASE DON'T DISCLOSE SECURITY-RELATED ISSUES PUBLICLY

Supported Versions

Only the latest major version receives security fixes.

Reporting a Vulnerability

If you discover a security vulnerability within this project, please open an issue here. All security vulnerabilities will be promptly addressed.

License

The MIT License (MIT). Please see License File for more information.


All versions of coloreeze with dependencies

PHP Build Version
Package Version
Requires php Version ^8.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 fonil/coloreeze contains the following files

Loading the files please wait ....