Skip to content

Commit 107627f

Browse files
authored
Merge pull request #6 from preprio/5.0
New version with new namespace
2 parents 78a0c68 + 612371f commit 107627f

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ This package is an SDK for the REST API.
44

55
## Basics
66

7-
The SDK on [GitHub](https://github.com/preprio/php-sdk)
7+
The SDK on [GitHub](https://github.com/preprio/php-rest-sdk)
88

99
Minimal PHP version: `^8.2`
1010

@@ -17,7 +17,7 @@ For Laravel projects we recommend using the Laravel providers for [REST](https:/
1717
You can install the SDK as a composer package.
1818

1919
```bash
20-
composer require preprio/php-sdk
20+
composer require preprio/php-rest-sdk
2121
```
2222

2323
## Making your first request
@@ -27,7 +27,7 @@ Let's start with getting some content items from your Prepr environment.
2727
```php
2828
<?php
2929

30-
use Preprio\Prepr;
30+
use Preprio\PhpRestSdk\Prepr;
3131

3232
$apiRequest = new Prepr('{ACCESS_TOKEN}');
3333

@@ -50,7 +50,7 @@ To get a single content item, pass the ID to the request.
5050
```php
5151
<?php
5252

53-
use Preprio\Prepr;
53+
use Preprio\PhpRestSdk\Prepr;
5454

5555
$apiRequest = new Prepr('{ACCESS_TOKEN}');
5656

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "preprio/php-sdk",
2+
"name": "preprio/php-rest-sdk",
33
"description": "Prepr PHP SDK",
44
"keywords": ["php", "prepr"],
55
"license": "MIT",
@@ -19,4 +19,4 @@
1919
"Preprio\\": "src/"
2020
}
2121
}
22-
}
22+
}

src/Prepr.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Preprio;
3+
namespace Preprio\PhpRestSdk;
44

55
use GuzzleHttp\Client;
66
use GuzzleHttp\Exception\GuzzleException;

0 commit comments

Comments
 (0)