Skip to content

Commit 3391c80

Browse files
1. 更新包名,命名空间等
1 parent 421ab9c commit 3391c80

10 files changed

+13
-13
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## phptools
1+
## php-tools
22

33
> A php tool library. 一个php工具库。
44

composer.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "hillpy/phptools",
2+
"name": "hillpy/php-tools",
33
"description": "A php tool library. 一个php工具库。",
44
"keywords": ["phptools", "工具库"],
55
"type": "library",
@@ -16,12 +16,12 @@
1616
"php": ">=5.3.0"
1717
},
1818
"support": {
19-
"issues": "https://github.com/hillpy/phptools/issues"
19+
"issues": "https://github.com/hillpy/php-tools/issues"
2020
},
2121
"minimum-stability": "stable",
2222
"autoload": {
2323
"psr-4": {
24-
"hillpy\\phptools\\": "src/"
24+
"Hillpy\\PHPTools\\": "src/"
2525
}
2626
},
2727
"require-dev": {

src/Common.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace hillpy\phptools;
3+
namespace Hillpy\PHPTools;
44

55
class Common
66
{

src/Curl.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace hillpy\phptools;
3+
namespace Hillpy\PHPTools;
44

55
class Curl
66
{

src/Prize.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

3-
namespace hillpy\phptools;
4-
include "Common.php";
3+
namespace Hillpy\PHPTools;
4+
use Hillpy\PHPTools\Common;
55

66
class Prize
77
{

src/Str.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace hillpy\phptools;
3+
namespace Hillpy\PHPTools;
44

55
class Str
66
{

tests/CommonTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33
use PHPUnit\Framework\TestCase;
4-
use hillpy\phptools\Common;
4+
use Hillpy\PHPTools\Common;
55

66
class CommonTest extends TestCase
77
{

tests/CurlTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33
use PHPUnit\Framework\TestCase;
4-
use hillpy\phptools\Curl;
4+
use Hillpy\PHPTools\Curl;
55

66
class CurlTest extends TestCase
77
{

tests/PrizeTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33
use PHPUnit\Framework\TestCase;
4-
use hillpy\phptools\Prize;
4+
use Hillpy\PHPTools\Prize;
55

66
class PrizeTest extends TestCase
77
{

tests/StrTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33
use PHPUnit\Framework\TestCase;
4-
use hillpy\phptools\Str;
4+
use Hillpy\PHPTools\Str;
55

66
class StrTest extends TestCase
77
{

0 commit comments

Comments
 (0)