Skip to content

Commit 0ca7522

Browse files
installation guide in reference to issue #1
1 parent b122a84 commit 0ca7522

File tree

1 file changed

+29
-1
lines changed

1 file changed

+29
-1
lines changed

README.md

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,32 @@ css-colors
33

44
Takes in a HEX color and produces variations of that colour for the foreground and background
55

6-
It takes a great php class made by Patrick Fitzgerald in 2004 ( http://www.barelyfitz.com/projects/csscolor/ ) and wraps it in a library for use in your project.
6+
It takes a great php class made by Patrick Fitzgerald in 2004 ( http://www.barelyfitz.com/projects/csscolor/ ) and wraps it in a library for use in your project.
7+
8+
## Installation
9+
10+
Install this package through Composer. Add the following to your composer.json file:
11+
```php
12+
"require": {
13+
"soapbox/css-color": "dev-master"
14+
}
15+
```
16+
Next, run composer install
17+
18+
Finally, add the service provider and the facade to app/config/app.php.
19+
```php
20+
'providers' => array(
21+
// ...
22+
23+
'SoapBox\Csscolor\CsscolorServiceProvider'
24+
)
25+
26+
27+
Not requred, but you can addd the Csscolor alias if you want.
28+
29+
'aliases' => array(
30+
// ...
31+
32+
'Csscolor' => 'SoapBox\Csscolor\Facade'
33+
)
34+
```

0 commit comments

Comments
 (0)