Skip to content

Commit

Permalink
chore: change namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
kocoten1992 committed Nov 18, 2024
1 parent ba87dd3 commit a573e7c
Show file tree
Hide file tree
Showing 16 changed files with 19 additions and 19 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ phputils is a share utility library
## Usage

```php
use Talmp\Phputils\StrUtil;
use Db29\Phputils\StrUtil;

// normal case
str_replace([1, 2], [2, 3], '12'); // '33'
Expand All @@ -28,7 +28,7 @@ Need mbstring extension
Use the package manager [composer](https://getcomposer.org/) to install phputils.

```bash
composer require talmp/phputils
composer require db29/phputils
```

## Testing
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "talmp/phputils",
"description": "TALMP utility php lib",
"name": "db29/phputils",
"description": "DB29 utility php lib",
"type": "library",
"require-dev": {
"phpunit/phpunit": "^9.5.20",
Expand All @@ -10,7 +10,7 @@
"license": "MIT",
"autoload": {
"psr-4": {
"Talmp\\Phputils\\": "src/"
"Db29\\Phputils\\": "src/"
}
},
"require": {
Expand Down
2 changes: 1 addition & 1 deletion src/BashCharEscape.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Talmp\Phputils;
namespace Db29\Phputils;

class BashCharEscape
{
Expand Down
2 changes: 1 addition & 1 deletion src/CLIUtil.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Talmp\Phputils;
namespace Db29\Phputils;

class CLIUtil
{
Expand Down
2 changes: 1 addition & 1 deletion src/CurlCharEscape.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Talmp\Phputils;
namespace Db29\Phputils;

class CurlCharEscape
{
Expand Down
2 changes: 1 addition & 1 deletion src/EncodeUtil.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Talmp\Phputils;
namespace Db29\Phputils;

class EncodeUtil
{
Expand Down
2 changes: 1 addition & 1 deletion src/Mutex.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Talmp\Phputils;
namespace Db29\Phputils;

# This is an mutex implementation at OS level
class Mutex
Expand Down
2 changes: 1 addition & 1 deletion src/ProcessUtil.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Talmp\Phputils;
namespace Db29\Phputils;

class ProcessUtil
{
Expand Down
2 changes: 1 addition & 1 deletion src/StrUtil.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Talmp\Phputils;
namespace Db29\Phputils;

use voku\helper\ASCII;

Expand Down
2 changes: 1 addition & 1 deletion tests/BashCharEscapeTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

use Talmp\Phputils\BashCharEscape;
use Db29\Phputils\BashCharEscape;
use PHPUnit\Framework\TestCase;

class BashCharEscapeTest extends TestCase
Expand Down
2 changes: 1 addition & 1 deletion tests/CLIUtilTest.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

use Db29\Phputils\CLIUtil;
use PHPUnit\Framework\TestCase;
use Talmp\Phputils\CLIUtil;

class CLIUtilTest extends TestCase
{
Expand Down
2 changes: 1 addition & 1 deletion tests/CurlCharEscapeTest.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

use Db29\Phputils\CurlCharEscape;
use PHPUnit\Framework\TestCase;
use Talmp\Phputils\CurlCharEscape;

class CurlCharEscapeTest extends TestCase
{
Expand Down
2 changes: 1 addition & 1 deletion tests/EncodeUtilTest.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

use Db29\Phputils\EncodeUtil;
use Faker\Factory;
use PHPUnit\Framework\TestCase;
use Talmp\Phputils\EncodeUtil;

class EncodeUtilTest extends TestCase
{
Expand Down
2 changes: 1 addition & 1 deletion tests/MutexTest.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

use Db29\Phputils\Mutex;
use PHPUnit\Framework\TestCase;
use Talmp\Phputils\Mutex;

class MutexTest extends TestCase
{
Expand Down
2 changes: 1 addition & 1 deletion tests/ProcessUtilTest.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

use Db29\Phputils\ProcessUtil;
use PHPUnit\Framework\TestCase;
use Talmp\Phputils\ProcessUtil;

class ProcessUtilTest extends TestCase
{
Expand Down
2 changes: 1 addition & 1 deletion tests/StrUtilTest.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

use Db29\Phputils\StrUtil;
use PHPUnit\Framework\TestCase;
use Talmp\Phputils\StrUtil;

class StrUtilTest extends TestCase
{
Expand Down

0 comments on commit a573e7c

Please sign in to comment.