Skip to content

Commit 036ed35

Browse files
committed
update package name
1 parent cb9dd8c commit 036ed35

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ composer require inherelab/php-pkg-template
2020
- clone this repository to local
2121
- update readme description
2222
- search all `inherelab/php-pkg-template` and replace to your package name.
23+
- contains all words like `InhereLab\DemoPkg`
2324
- update `composer.json` contents, field: name, description, require, autoload
2425

2526
## License

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@
1717
},
1818
"autoload": {
1919
"psr-4": {
20-
"InhereLab\\PhpPkg\\": "src/"
20+
"InhereLab\\DemoPkg\\": "src/"
2121
}
2222
},
2323
"autoload-dev": {
2424
"psr-4": {
25-
"InhereLab\\PhpPkgTest\\": "test/"
25+
"InhereLab\\DemoPkgTest\\": "test/"
2626
}
2727
},
2828
"bin": [

test/BaseTestCase.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php declare(strict_types=1);
22

3-
namespace InhereLab\PhpPkgTest;
3+
namespace InhereLab\DemoPkgTest;
44

55
use PHPUnit\Framework\TestCase;
66
use ReflectionException;
@@ -11,7 +11,7 @@
1111
/**
1212
* Class BaseTestCase
1313
*
14-
* @package InhereLab\PhpPkgTest
14+
* @package InhereLab\DemoPkgTest
1515
*/
1616
abstract class BaseTestCase extends TestCase
1717
{

test/bootstrap.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88

99
$libDir = dirname(__DIR__);
1010
$npMap = [
11-
'InhereLab\\PhpPkgTest\\' => $libDir . '/test/',
12-
'InhereLab\\PhpPkg\\' => $libDir . '/src/',
11+
'InhereLab\\DemoPkgTest\\' => $libDir . '/test/',
12+
'InhereLab\\DemoPkg\\' => $libDir . '/src/',
1313
];
1414

1515
spl_autoload_register(static function ($class) use ($npMap) {

0 commit comments

Comments
 (0)