Skip to content

Commit

Permalink
modify namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
wpjscc committed Aug 10, 2024
1 parent 27e58c2 commit ebf206d
Show file tree
Hide file tree
Showing 11 changed files with 20 additions and 20 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
# reactphp-framework/json
# reactphp-x/json

## install

```
composer require reactphp-framework/json -vvv
composer require reactphp-x/json -vvv
```

## Usage

```php
require __DIR__ . "/vendor/autoload.php";

use Reactphp\Framework\Json\Json;
use ReactphpX\Json\Json;


$json = new Json();
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
{
"name": "reactphp-framework/json",
"name": "reactphp-x/json",
"license": "MIT",
"autoload": {
"psr-4": {
"Reactphp\\Framework\\Json\\": "src/"
"ReactphpX\\Json\\": "src/"
},
"files": [
"src/helpers.php"
]
},
"autoload-dev": {
"psr-4": {
"Reactphp\\Framework\\Json\\Tests\\": "tests/"
"ReactphpX\\Json\\Tests\\": "tests/"
}
},
"authors": [
Expand Down
2 changes: 1 addition & 1 deletion examples/01.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

require __DIR__ . "./../vendor/autoload.php";

use Reactphp\Framework\Json\Json;
use ReactphpX\Json\Json;


$json = new Json();
Expand Down
2 changes: 1 addition & 1 deletion src/Json.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Reactphp\Framework\Json;
namespace ReactphpX\Json;

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

namespace Reactphp\Framework\Json;
namespace ReactphpX\Json;

class Test
{
Expand Down
4 changes: 2 additions & 2 deletions tests/JsonComposeDownToUpTest.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace Reactphp\Framework\Json\Tests;
namespace ReactphpX\Json\Tests;

use Reactphp\Framework\Json\Json;
use ReactphpX\Json\Json;



Expand Down
4 changes: 2 additions & 2 deletions tests/JsonComposeTest.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace Reactphp\Framework\Json\Tests;
namespace ReactphpX\Json\Tests;

use Reactphp\Framework\Json\Json;
use ReactphpX\Json\Json;



Expand Down
4 changes: 2 additions & 2 deletions tests/JsonDataOptionTest.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace Reactphp\Framework\Json\Tests;
namespace ReactphpX\Json\Tests;

use Reactphp\Framework\Json\Json;
use ReactphpX\Json\Json;



Expand Down
4 changes: 2 additions & 2 deletions tests/JsonLogicTest.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace Reactphp\Framework\Json\Tests;
namespace ReactphpX\Json\Tests;

use Reactphp\Framework\Json\Json;
use ReactphpX\Json\Json;



Expand Down
4 changes: 2 additions & 2 deletions tests/JsonTest.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace Reactphp\Framework\Json\Tests;
namespace ReactphpX\Json\Tests;

use Reactphp\Framework\Json\Json;
use ReactphpX\Json\Json;



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

namespace Reactphp\Framework\Json\Tests;
namespace ReactphpX\Json\Tests;

use PHPUnit\Framework\MockObject\MockObject;
use PHPUnit\Framework\TestCase as BaseTestCase;
Expand Down

0 comments on commit ebf206d

Please sign in to comment.