Skip to content

Commit 7112e11

Browse files
committed
Change all names to JsonApiClient
1 parent 9378b8e commit 7112e11

File tree

6 files changed

+11
-11
lines changed

6 files changed

+11
-11
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,15 @@ See the [documentation](docs/README.md).
3939

4040
```php
4141
// The Response body from a JSON API server
42-
$jsonapi_string = '{"meta":{"info":"Testing the JsonApiClient Library."}}';
42+
$jsonapi_string = '{"meta":{"info":"Testing the JsonApiClient library."}}';
4343

4444
$manager = new \Art4\JsonApiClient\Utils\Manager();
4545

4646
$document = $manager->parse($jsonapi_string);
4747

4848
if ($document->has('meta.info'))
4949
{
50-
echo $document->get('meta.info'); // "Testing the JsonApiClient Library."
50+
echo $document->get('meta.info'); // "Testing the JsonApiClient library."
5151
}
5252

5353
// List all keys

docs/exception-introduction.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ All Exceptions thrown by JSON API client implements `\Art4\JsonApiClient\Excepti
66
```php
77
try
88
{
9-
// do something with JSON API Client
9+
// do something with JsonApiClient
1010
}
1111
catch (\Art4\JsonApiClient\Exception\Exception $e)
1212
{

docs/objects-document.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ _[Symbols definition](objects-introduction.md#symbols)_
2727
You can check for all possible values using the `has()` method.
2828

2929
```php
30-
$jsonapi_string = '{"meta":{"info":"Testing the JSON API Client."}}';
30+
$jsonapi_string = '{"meta":{"info":"Testing the JsonApiClient library."}}';
3131

3232
$document = \Art4\JsonApiClient\Utils\Helper::parse($jsonapi_string);
3333

docs/objects-introduction.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ All possible objects and their hierarchical structure are listet below.
3939

4040
## Value access
4141

42-
JSON API Client will parse a JSON API content into a hierarchical object stucture. Every object implements the `AccessInterface` and has these methods for getting the values:
42+
JsonApiClient will parse a JSON API content into a hierarchical object stucture. Every object implements the `AccessInterface` and has these methods for getting the values:
4343

4444
- `has($key)`: Check, if a value exists
4545
- `get($key)`: Get a value
@@ -51,7 +51,7 @@ JSON API Client will parse a JSON API content into a hierarchical object stuctur
5151
You can check for all possible values using the `has()` method.
5252

5353
```php
54-
$jsonapi_string = '{"meta":{"info":"Testing the JSON API Client."}}';
54+
$jsonapi_string = '{"meta":{"info":"Testing the JsonApiClient library."}}';
5555

5656
$document = \Art4\JsonApiClient\Utils\Helper::parse($jsonapi_string);
5757

@@ -124,7 +124,7 @@ var_dump($document->get('meta.info'));
124124
This returns:
125125

126126
```php
127-
string(28) "Testing the JSON API Client."
127+
string(28) "Testing the JsonApiClient library."
128128
```
129129

130130
### Get the containing data as array
@@ -158,7 +158,7 @@ This returns:
158158
```php
159159
array(1) {
160160
["meta"] => array(1) {
161-
["info"] => string(28) "Testing the JSON API Client."
161+
["info"] => string(28) "Testing the JsonApiClient library."
162162
}
163163
}
164164
```

docs/utils-helper.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Assuming you have get a response from a JSON API server. Use `parse()` to work w
1010
```php
1111

1212
// The Response body from a JSON API server
13-
$jsonapi_string = '{"meta":{"info":"Testing the JSON API Client."}}';
13+
$jsonapi_string = '{"meta":{"info":"Testing the JsonApiClient library."}}';
1414

1515
$document = \Art4\JsonApiClient\Utils\Helper::parse($jsonapi_string);
1616
```
@@ -23,7 +23,7 @@ This returns a [Document](objects-document.md) object which provided all content
2323
2424
### Validate a JSON API response body
2525

26-
JSON API Client can be used as a validator:
26+
JsonApiClient can be used as a validator:
2727

2828
```php
2929
$wrong_jsonapi = '{"data":{},"meta":{"info":"This is wrong JSON API. `data` has to be `null` or containing at least `type` and `id`."}}';

docs/utils-manager.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Assuming you have get a response from a JSON API server. Use `parse()` to work w
1010
```php
1111

1212
// The Response body from a JSON API server
13-
$jsonapi_string = '{"meta":{"info":"Testing the JSON API Client."}}';
13+
$jsonapi_string = '{"meta":{"info":"Testing the JsonApiClient library."}}';
1414

1515
$manager = new \Art4\JsonApiClient\Utils\Manager();
1616

0 commit comments

Comments
 (0)