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

Commit a1f378f

Browse files
committed
update lib namespace, update lib package name
1 parent aeda9a4 commit a1f378f

10 files changed

+25
-25
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/str-utils",
2+
"name": "toolkit/str-utils",
33
"type": "library",
44
"description": "some string tool library of the php",
55
"keywords": ["library","tool","php"],
6-
"homepage": "https://github.com/php-mylib/str-utils",
6+
"homepage": "https://github.com/php-toolkit/str-utils",
77
"license": "MIT",
88
"authors": [
99
{
@@ -17,7 +17,7 @@
1717
},
1818
"autoload": {
1919
"psr-4": {
20-
"MyLib\\StrUtil\\" : "src/"
20+
"Toolkit\\StrUtil\\" : "src/"
2121
}
2222
},
2323
"suggest": {

src/HtmlHelper.php

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

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

1111
/**
1212
* Class HtmlHelper
13-
* @package MyLib\StrUtil
13+
* @package Toolkit\StrUtil
1414
*/
1515
class HtmlHelper
1616
{

src/Json.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66
* Time: 9:41
77
*/
88

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

1111
/**
1212
* Class Json
13-
* @package MyLib\StrUtil
13+
* @package Toolkit\StrUtil
1414
*/
1515
class Json extends JsonHelper
1616
{
1717

18-
}
18+
}

src/JsonHelper.php

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

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

1111
/**
1212
* Class JsonHelper
13-
* @package MyLib\StrUtil
13+
* @package Toolkit\StrUtil
1414
*/
1515
class JsonHelper
1616
{

src/Str.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66
* Time: 21:12
77
*/
88

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

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

src/StrBuffer.php

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

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

1111
/**
1212
* Class StrBuffer
13-
* @package MyLib\StrUtil
13+
* @package Toolkit\StrUtil
1414
*/
1515
final class StrBuffer
1616
{

src/StringHelper.php

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

3-
namespace MyLib\StrUtil;
3+
namespace Toolkit\StrUtil;
44

55

66
/**
77
* Class StringHelper
8-
* @package MyLib\StrUtil
8+
* @package Toolkit\StrUtil
99
*/
1010
abstract class StringHelper
1111
{

src/UrlHelper.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
* Use : ...
77
*/
88

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

1111
/**
1212
* Class UrlHelper
13-
* @package MyLib\StrUtil
13+
* @package Toolkit\StrUtil
1414
*/
1515
class UrlHelper
1616
{

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

0 commit comments

Comments
 (0)