Skip to content

Commit a225c2e

Browse files
committed
add composer file and change read me
1 parent 2c77e9f commit a225c2e

File tree

2 files changed

+54
-0
lines changed

2 files changed

+54
-0
lines changed

README.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,41 @@ You can view information about Google Closure Compiler on this [link](https://de
55

66

77

8+
##Installation
9+
10+
You can install the library with composer or manually.
11+
12+
#### Composer
13+
14+
Step 1. Edit your `composer.json`:
15+
16+
```json
17+
{
18+
"require": {
19+
"tureki/phpcc": ">=1.0.0"
20+
}
21+
}
22+
```
23+
24+
Step 2. Install it:
25+
26+
```bash
27+
$ curl -sS https://getcomposer.org/installer | php
28+
$ php composer.phar install
29+
```
30+
31+
#### Manually From Release
32+
33+
Step 1. [Download the latest release](https://github.com/tureki/php-closure-compiler/releases)
34+
35+
Step 2. Include the library:
36+
37+
```php
38+
require_once '[path to phpcc]/phpcc.class.php';
39+
```
40+
41+
42+
843
## How to use
944

1045
Download **phpcc** Library. and then require <code>phpcc.class.php</code> in your <code>.php</code> file. You can test <code>sample.php</code> in <code>samples</code> folder.

composer.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"name": "tureki/phpcc",
3+
"description": "A PHP Library to use Google Closure Compiler compress Javascript ",
4+
"keywords": [ "php", "compress", "closure compiler" ],
5+
"type": "library",
6+
"license": "Apache 2",
7+
"authors": [{
8+
"name": "tureki",
9+
"homepage": "https://github.com/tureki"
10+
}],
11+
"require": {
12+
"php": ">=5.2.0",
13+
},
14+
"autoload": {
15+
"psr-0": {
16+
"tureki": "src/"
17+
}
18+
}
19+
}

0 commit comments

Comments
 (0)