Skip to content

About

A bundle written for Symfony 2.8 containing Twig filters to add and subtract hexadecimal colours.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

10 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

ColourBundle

A bundle written for Symfony 2.8 containing Twig filters to add and subtract hexadecimal colours.

Installation

Put the bundle in your src folder, and add the following line to your services.yml:

kookas.colour_calc:
        class: Kookas\ColourBundle\Twig\ColourCalc
        public: false
        tags:
            - { name: twig.extension }

Then include the bundle in your app/AppKernel.php file, as usual.

Usage

colour1|addColour(colour2) colour1|subColour(colour2)

Limitations (to be removed later)

  • Colours must be in six-digit format.
  • Services.yml must be manually configured.

About

A bundle written for Symfony 2.8 containing Twig filters to add and subtract hexadecimal colours.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages