Skip to content

Commit 6aeacba

Browse files
committed
add namespace
1 parent b9caa15 commit 6aeacba

File tree

7 files changed

+6
-4
lines changed

7 files changed

+6
-4
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"homepage": "https://github.com/tureki"
1010
}],
1111
"require": {
12-
"php": ">=5.2.0"
12+
"php": ">=5.3.0"
1313
},
1414
"autoload": {
1515
"psr-0": {

samples/sample.php

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

2424
/**
2525
* java_file
@@ -44,7 +44,7 @@
4444
* phpcc config
4545
* @var phpcc
4646
*/
47-
$phpcc = new PhpCc(array(
47+
$phpcc = new tureki\PhpCc(array(
4848
'java_file' => 'YOUR_JAVA_FILE_PATH',
4949
'jar_file' => '../src/compiler/compiler.jar',
5050
'output_path' => './output/',

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
* limitations under the License.
1717
*/
1818

19+
namespace tureki;
20+
1921
/**
2022
* PHP Closure Compiler
2123
* A PHP Library to use Google Closure Compiler compress Javascript
@@ -26,7 +28,7 @@
2628
**/
2729
class PhpCc {
2830

29-
static public $VERSION = "v0.5.0";
31+
static public $VERSION = "v1.0.0";
3032

3133
public function __construct($options)
3234
{
File renamed without changes.

0 commit comments

Comments
 (0)