Download the PHP package matatirosoln/pantone-converter-bundle without Composer

On this page you can find all versions of the php package matatirosoln/pantone-converter-bundle. 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 pantone-converter-bundle

Pantone Converter Bundle

Wraps the Pantone Converter to provide a Twig function to display a colour swatch

Installation

Require the bundle with composer

` Enable the bundle, for Flex

Or for Symfony 3.4

Usage

Basic usage

In a Twig template use pantone_swatch passing the required colour as the parameter e.g. ` will render the following HTML

You'll then want to apply styling to the pantone-swatch class to display at an appropriate size for your implementation, e.g.

Error case

If you request a non-existent colour, the swatch will render with a white background, e.g. ` will render the following HTML

Options

You can also pass an optional object as the second parameter with three possible values.

Content

Add content to the span (this can include HTML), e.g. ` will render the following HTML

Border

Add a border of the specified colour to the swatch. This can be either an HTML named colour, or a hex colour, e.g. ` will render the following HTML

You'll need to set the other border parameters in your css, e.g.

Border when white

Add a border of the specified colour to the swatch but only if it is white. This may happen if the swatch is deliberately set to be white, or when an invalid colour is passed. This can be either an HTML named colour, or a hex colour, e.g. ` will render the following HTML

because 100 C is a valid colour, while ` will render the following HTML

As for a standard border you'll also need to set the other border parameters in your css.

License

Copyright © 2020, Matatiro Solutions. Licensed under the MIT License.

Note


All versions of pantone-converter-bundle with dependencies

PHP Build Version
Package Version
Requires php Version >=7.2
matatirosoln/pantone-converter Version ^0.0.1
symfony/config Version ~3.4|~4.4|~5.1
symfony/dependency-injection Version ~3.4|~4.4|~5.1
symfony/twig-bundle Version ~3.4|~4.4|~5.1
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 matatirosoln/pantone-converter-bundle contains the following files

Loading the files please wait ....