Skip to content

Commit 9465b7e

Browse files
committed
phpcc update
1 parent d1f7564 commit 9465b7e

File tree

3 files changed

+14
-14
lines changed

3 files changed

+14
-14
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
##PHP Closure Compiler
22

3-
**PHPCC** is a PHP Library to use Google Closure Compiler compress Javascript.
3+
**phpcc** is a PHP Library to use Google Closure Compiler compress Javascript.
44
You can view information about Google Closure Compiler on this [link](https://developers.google.com/closure/compiler/).
55

66

77

88
## How to use
99

10-
Download **phpcc** Library. and then include <code>phpcc.php</code> in your <code>.php</code> file. You can test <code>sample.php</code> in <code>samples</code> folder.
10+
Download **phpcc** Library. and then include <code>phpcc.class.php</code> in your <code>.php</code> file. You can test <code>sample.php</code> in <code>samples</code> folder.
1111

1212
<pre>
13-
include 'src/phpcc.php';
13+
require '../src/phpcc.class.php';
1414

15-
$phpcc = new phpcc(array(
15+
$phpcc = new PhpCc(array(
1616
'java_file' => 'YOUR JAVA FILE PATH',
1717
'jar_file' => '../src/compiler/compiler.jar',
1818
'output_path' => './output/',

samples/sample.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@
1919
/**
2020
*include library
2121
*/
22-
include_once '../src/phpcc.php';
22+
require '../src/phpcc.class.php';
2323

2424
/**
2525
* java_file
2626
*
2727
* Linux "/usr/lib/jvm/jre-1.6.0/bin/java"
28-
* Window7 "C:\Program Files (x86)\Java\jre6\bin\java"
28+
* Window7 "C:\Program Files (x86)\Java\jre6\bin\java"
2929
*/
3030

3131
/**
@@ -44,7 +44,7 @@
4444
* phpcc config
4545
* @var phpcc
4646
*/
47-
$phpcc = new phpcc(array(
47+
$phpcc = new PhpCc(array(
4848
'java_file' => 'YOUR_JAVA_FILE_PATH',
4949
'jar_file' => '../src/compiler/compiler.jar',
5050
'output_path' => './output/',
@@ -55,16 +55,16 @@
5555
/**
5656
* Test your phpcc setting.
5757
*/
58-
// print_r($phpcc->help());
58+
print_r($phpcc->help());
5959

6060
/**
6161
* Add jQuery file and combined compression
6262
*/
63-
$ary_result = $phpcc
64-
->add("js/jquery-1.10.2.js")
65-
->add("js/1.9/jquery-1.9.1.js")
66-
->exec("all.js");
67-
print_r($ary_result);
63+
// $ary_result = $phpcc
64+
// ->add("js/jquery-1.10.2.js")
65+
// ->add("js/1.9/jquery-1.9.1.js")
66+
// ->exec("all.js");
67+
// print_r($ary_result);
6868

6969
/**
7070
* Add jQuery file and individual compression

src/phpcc.php renamed to src/PhpCc.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
* @author tureki
2525
*
2626
**/
27-
class phpcc {
27+
class PhpCc {
2828

2929
public function __construct($options)
3030
{

0 commit comments

Comments
 (0)