Skip to content
This repository was archived by the owner on Jun 11, 2020. It is now read-only.

Commit db51286

Browse files
committedApr 22, 2018
update lib namespace, update lib package name
1 parent b776952 commit db51286

File tree

6 files changed

+16
-16
lines changed

6 files changed

+16
-16
lines changed
 

‎README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## Install
44

55
```bash
6-
composer require mylib/str-utils
6+
composer require toolkit/str-utils
77
```
88

99
## license

‎composer.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
2-
"name": "mylib/arr-utils",
2+
"name": "toolkit/arr-utils",
33
"type": "library",
44
"description": "some array tool library of the php",
55
"keywords": ["library","tool","php"],
6-
"homepage": "https://github.com/php-mylib/arr-utils",
6+
"homepage": "https://github.com/php-toolkit/arr-utils",
77
"license": "MIT",
88
"authors": [
99
{
@@ -17,7 +17,7 @@
1717
},
1818
"autoload": {
1919
"psr-4": {
20-
"MyLib\\ArrUtil\\" : "src/"
20+
"Toolkit\\ArrUtil\\" : "src/"
2121
}
2222
},
2323
"suggest": {

‎src/Arr.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66
* Time: 下午9:40
77
*/
88

9-
namespace MyLib\ArrUtil;
9+
namespace Toolkit\ArrUtil;
1010

1111
/**
1212
* Class Arr
1313
* alias of the StringHelper
14-
* @package MyLib\ArrUtil
14+
* @package Toolkit\ArrUtil
1515
*/
1616
class Arr extends ArrayHelper
1717
{

‎src/ArrBuffer.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
* Time: 9:17
77
*/
88

9-
namespace MyLib\ArrUtil;
9+
namespace Toolkit\ArrUtil;
1010

1111
/**
1212
* Class ArrBuffer
13-
* @package MyLib\ArrUtil
13+
* @package Toolkit\ArrUtil
1414
*/
1515
final class AryBuffer
1616
{

‎src/ArrayHelper.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@
77
* Uesd: 主要功能是 数组处理
88
*/
99

10-
namespace MyLib\ArrUtil;
10+
namespace Toolkit\ArrUtil;
1111

1212
use Inhere\Library\Collections\CollectionInterface;
1313

1414
/**
1515
* Class ArrayHelper
16-
* @package MyLib\ArrUtil
16+
* @package Toolkit\ArrUtil
1717
*/
1818
class ArrayHelper
1919
{

‎test/boot.php

+6-6
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@
1010
spl_autoload_register(function ($class) {
1111
$file = null;
1212

13-
if (0 === strpos($class,'MyLib\ArrUtil\Example\\')) {
14-
$path = str_replace('\\', '/', substr($class, strlen('MyLib\ArrUtil\Example\\')));
13+
if (0 === strpos($class,'Toolkit\ArrUtil\Example\\')) {
14+
$path = str_replace('\\', '/', substr($class, strlen('Toolkit\ArrUtil\Example\\')));
1515
$file = dirname(__DIR__) . "/example/{$path}.php";
16-
} elseif (0 === strpos($class,'MyLib\ArrUtil\Test\\')) {
17-
$path = str_replace('\\', '/', substr($class, strlen('MyLib\ArrUtil\Test\\')));
16+
} elseif (0 === strpos($class,'Toolkit\ArrUtil\Test\\')) {
17+
$path = str_replace('\\', '/', substr($class, strlen('Toolkit\ArrUtil\Test\\')));
1818
$file = __DIR__ . "/{$path}.php";
19-
} elseif (0 === strpos($class,'MyLib\ArrUtil\\')) {
20-
$path = str_replace('\\', '/', substr($class, strlen('MyLib\ArrUtil\\')));
19+
} elseif (0 === strpos($class,'Toolkit\ArrUtil\\')) {
20+
$path = str_replace('\\', '/', substr($class, strlen('Toolkit\ArrUtil\\')));
2121
$file = dirname(__DIR__) . "/src/{$path}.php";
2222
}
2323

0 commit comments

Comments
 (0)