Download the PHP package carbon/colorpicker-oklch without Composer

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

Latest stable version Total downloads License GitHub forks GitHub stars GitHub watchers

Carbon.ColorPicker.OKLCH

Color picker for Neos CMS who saves the color in the OKLCH color space. It also provide an eel helper to convert HEX colors to OKLCH.

There are many options on how the picker should look like:

Here you can see some of the combinations:

screenshot

Installation

Carbon.ColorPicker.OKLCH is available via packagist. Run the following command in your site package

Then run composer update in your project root.

How the value get stored

Mode all

If the mode ist set to all (which is the default), the color picker don't store only the given value, it stores an array with following values:

Mode coords

If the mode ist set to coords, the color picker stores the coordinates of the OKLCH color as array:

Mode hex

If the mode ist set to hex, the color picker stores the hex color value: #65a30d

Mode oklch

If the mode ist set to oklch, the color picker stores the OKLCH color as string: oklch(64.817% 0.17545 131.68)

Settings

Add a property of type array and configure the editor as seen in this example:

If you set mode to hex or oklch the type has to be string:

Customization

The editor allows some global default options via your Settings.yaml file:

The settings can also be set in your property configuration:

Eel helper

ColorConvert.toOkLch(color, precision, customPropertyName)

Converts a HEX color to the object who is used when you set the mode to all.

Example:

returns


All versions of colorpicker-oklch with dependencies

PHP Build Version
Package Version
Requires matthieumastadenis/couleur Version ^0.1
neos/neos-ui Version ^7.3 || ^8.0 || ^9.0
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 carbon/colorpicker-oklch contains the following files

Loading the files please wait ....