2017 © Pedro Peláez
 

library websafe-colors

Web safe colors generator

image

todstoychev/websafe-colors

Web safe colors generator

  • Friday, March 25, 2016
  • by todstoychev
  • Repository
  • 1 Watchers
  • 0 Stars
  • 283 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 8 Versions
  • 3 % Grown

The README.md

This is a very simple composer package used to generate array with websafe color codes. It can generate both RGB and HEX codes., (*1)

Installation

Simply use the usual composer way:, (*2)

composer require todstoychev/websafe-colors, (*3)

or add to your composer.json in the 'require' section:, (*4)

    "require": {
        "todstoychev/websafe-colors": "dev-master"
    }

and run, (*5)

composer update, (*6)

Usage

The package contains only one class. You will need only the Wsc::getColors() method. This method accepts only one argument which defines the type of the produced codes. Default is false and the result is array with the hex formated codes. If you want to get RGB values use true as argument. The result in this case will be:, (*7)

    [
        ['r' => 0, 'g' => 0, 'b' => 0], 
        ['r' => 0, 'g' => 51, 'b' => 0],
        ['r' => 0, 'g' => 0, 'b' => 51],
        ...
    ]

The Versions

25/03 2016

dev-master

9999999-dev https://github.com/todstoychev/websafe-colors

Web safe colors generator

  Sources   Download

MIT

The Requires

  • php >=5.4

 

by Todor Todorov

generator rgb hex color codes

25/03 2016

dev-develop

dev-develop https://github.com/todstoychev/websafe-colors

Web safe colors generator

  Sources   Download

MIT

The Requires

  • php >=5.4

 

by Todor Todorov

generator rgb hex color codes

25/03 2016

v0.1.1

0.1.1.0 https://github.com/todstoychev/websafe-colors

Web safe colors generator

  Sources   Download

MIT

The Requires

  • php >=5.4

 

by Todor Todorov

generator rgb hex color codes

25/03 2016

v0.1.0

0.1.0.0 https://github.com/todstoychev/websafe-colors

Web safe colors generator

  Sources   Download

MIT

The Requires

  • php >=5.4

 

by Todor Todorov

generator rgb hex color codes

25/03 2016

v0.1.3-alpha

0.1.3.0-alpha https://github.com/todstoychev/wsc

Web safe colors generator

  Sources   Download

MIT

The Requires

  • php >=5.4

 

by Todor Todorov

generator rgb hex color codes

25/03 2016

v0.1.2-alpha

0.1.2.0-alpha https://github.com/todstoychev/wsc

Web safe colors generator

  Sources   Download

MIT

The Requires

  • php >=5.4

 

by Todor Todorov

generator rgb hex color codes

25/03 2016

v0.1.1-alpha

0.1.1.0-alpha https://github.com/todstoychev/wsc

Web safe colors generator

  Sources   Download

MIT

The Requires

 

by Todor Todorov

generator rgb hex color codes

02/12 2015

0.1.0-alpha

0.1.0.0-alpha https://github.com/todstoychev/wsc

Web safe colors generator

  Sources   Download

MIT

The Requires

 

by Todor Todorov

generator rgb hex color codes