Skip to content

Commit 1d2e7e6

Browse files
committed
maint: migrate roydejong -> SoftwarePunt
1 parent 0e918ca commit 1d2e7e6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+149
-149
lines changed

.idea/so-web-api.iml

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# `superoffice-webapi`
22

3-
[![Latest Stable Version](https://poser.pugx.org/roydejong/superoffice-webapi/version)](https://packagist.org/packages/roydejong/superoffice-webapi)
4-
[![PHPUnit](https://github.com/roydejong/superoffice-webapi-php-sdk/actions/workflows/phpunit.yml/badge.svg)](https://github.com/roydejong/superoffice-webapi-php-sdk/actions/workflows/phpunit.yml)
5-
[![Coverage Status](https://coveralls.io/repos/github/roydejong/superoffice-webapi-php-sdk/badge.svg)](https://coveralls.io/github/roydejong/superoffice-webapi-php-sdk)
3+
[![Latest Stable Version](https://poser.pugx.org/SoftwarePunt/superoffice-webapi/version)](https://packagist.org/packages/softwarepunt/superoffice-webapi)
4+
[![PHPUnit](https://github.com/SoftwarePunt/superoffice-webapi-php-sdk/actions/workflows/phpunit.yml/badge.svg)](https://github.com/SoftwarePunt/superoffice-webapi-php-sdk/actions/workflows/phpunit.yml)
5+
[![Coverage Status](https://coveralls.io/repos/github/SoftwarePunt/superoffice-webapi-php-sdk/badge.svg)](https://coveralls.io/github/SoftwarePunt/superoffice-webapi-php-sdk)
66

77
***Unofficial PHP SDK for SuperOffice Web API***
88

@@ -11,9 +11,9 @@ This library provides a PHP SDK for the SuperOffice [REST WebAPI](https://commun
1111
**This library's functionality is currently limited to Projects, Appointments and Documents, but it should be easy enough to expand it to other SuperOffice types as well if you need them - just note that some work is needed.**
1212

1313
## Installation
14-
The recommended way to install this library is with [Composer](http://getcomposer.org/), by adding the [`superoffice-webapi`](https://packagist.org/packages/roydejong/superoffice-webapi) package as a dependency to your application:
14+
The recommended way to install this library is with [Composer](http://getcomposer.org/), by adding the [`superoffice-webapi`](https://packagist.org/packages/SoftwarePunt/superoffice-webapi) package as a dependency to your application:
1515

16-
composer require roydejong/superoffice-webapi
16+
composer require softwarepunt/superoffice-webapi
1717

1818
## Configuration
1919

@@ -26,8 +26,8 @@ When initializing the client, you must pass a `Config` object:
2626
```php
2727
<?php
2828

29-
use roydejong\SoWebApi\Client;
30-
use roydejong\SoWebApi\Config;
29+
use SoftwarePunt\SoWebApi\Client;
30+
use SoftwarePunt\SoWebApi\Config;
3131

3232
$config = new Config();
3333
$config->environment = "sod";
@@ -71,7 +71,7 @@ After setting your configuration, you can ask the client to generate the OAuth a
7171
```php
7272
<?php
7373

74-
use roydejong\SoWebApi\Client;
74+
use SoftwarePunt\SoWebApi\Client;
7575

7676
$client = new Client(/* $config */);
7777
$redirectUrl = $client->getOAuthAuthorizationUrl("optional_state");
@@ -138,7 +138,7 @@ You must explicitly set the access token you want to use with the client before
138138
```php
139139
<?php
140140

141-
use roydejong\SoWebApi\Client;
141+
use SoftwarePunt\SoWebApi\Client;
142142

143143
// Optionally pass it directly in the client constructor:
144144
$client = new Client(/* $config */, $tokenResponse->access_token);
@@ -155,7 +155,7 @@ You can perform a [tenant status check](https://community.superoffice.com/en/dev
155155
```php
156156
<?php
157157

158-
use roydejong\SoWebApi\Client;
158+
use SoftwarePunt\SoWebApi\Client;
159159

160160
// Authentication is not required, but "tenantId" must be set in your config.
161161
$client = new Client(/* $config */);

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "roydejong/superoffice-webapi",
2+
"name": "softwarepunt/superoffice-webapi",
33
"description": "Unofficial PHP SDK for SuperOffice WebAPI",
44
"type": "library",
55
"license": "MIT",
@@ -26,8 +26,8 @@
2626
},
2727
"autoload": {
2828
"psr-4": {
29-
"roydejong\\SoWebApi\\": "src/",
30-
"roydejong\\SoWebApiTests\\": "tests/"
29+
"SoftwarePunt\\SoWebApi\\": "src/",
30+
"SoftwarePunt\\SoWebApiTests\\": "tests/"
3131
}
3232
}
3333
}

composer.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Client.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
<?php
22

3-
namespace roydejong\SoWebApi;
3+
namespace SoftwarePunt\SoWebApi;
44

55
use GuzzleHttp\HandlerStack;
66
use Psr\Http\Message\ResponseInterface;
7-
use roydejong\SoWebApi\Collections\Appointments\AppointmentCollection;
8-
use roydejong\SoWebApi\Collections\Appointments\DocumentCollection;
9-
use roydejong\SoWebApi\Collections\Projects\ProjectCollection;
10-
use roydejong\SoWebApi\Structs\Meta\TenantStatus;
11-
use roydejong\SoWebApi\Structs\OAuth\TokenResponse;
7+
use SoftwarePunt\SoWebApi\Collections\Appointments\AppointmentCollection;
8+
use SoftwarePunt\SoWebApi\Collections\Appointments\DocumentCollection;
9+
use SoftwarePunt\SoWebApi\Collections\Projects\ProjectCollection;
10+
use SoftwarePunt\SoWebApi\Structs\Meta\TenantStatus;
11+
use SoftwarePunt\SoWebApi\Structs\OAuth\TokenResponse;
1212
use Spatie\GuzzleRateLimiterMiddleware\RateLimiterMiddleware;
1313

1414
/**
1515
* Base client for the SuperOffice WebAPI.
1616
*/
1717
class Client
1818
{
19-
const USER_AGENT = "superoffice-webapi (https://github.com/roydejong/superoffice-webapi-php-sdk)";
19+
const USER_AGENT = "superoffice-webapi (https://github.com/SoftwarePunt/superoffice-webapi-php-sdk)";
2020

2121
// -----------------------------------------------------------------------------------------------------------------
2222
// Core & config

src/Collections/Appointments/AppointmentCollection.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<?php
22

3-
namespace roydejong\SoWebApi\Collections\Appointments;
3+
namespace SoftwarePunt\SoWebApi\Collections\Appointments;
44

5-
use roydejong\SoWebApi\Collections\Collection;
6-
use roydejong\SoWebApi\Structs\Appointments\AppointmentEntity;
7-
use roydejong\SoWebApi\Structs\JsonStruct;
8-
use roydejong\SoWebApi\WebApiException;
5+
use SoftwarePunt\SoWebApi\Collections\Collection;
6+
use SoftwarePunt\SoWebApi\Structs\Appointments\AppointmentEntity;
7+
use SoftwarePunt\SoWebApi\Structs\JsonStruct;
8+
use SoftwarePunt\SoWebApi\WebApiException;
99

1010
class AppointmentCollection extends Collection
1111
{

src/Collections/Appointments/DocumentCollection.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?php
22

3-
namespace roydejong\SoWebApi\Collections\Appointments;
3+
namespace SoftwarePunt\SoWebApi\Collections\Appointments;
44

5-
use roydejong\SoWebApi\Collections\Collection;
6-
use roydejong\SoWebApi\Http\BinaryResponse;
5+
use SoftwarePunt\SoWebApi\Collections\Collection;
6+
use SoftwarePunt\SoWebApi\Http\BinaryResponse;
77

88
class DocumentCollection extends Collection
99
{

src/Collections/Collection.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<?php
22

3-
namespace roydejong\SoWebApi\Collections;
3+
namespace SoftwarePunt\SoWebApi\Collections;
44

5-
use roydejong\SoWebApi\Client;
6-
use roydejong\SoWebApi\Structs\OData\ODataPageResponse;
7-
use roydejong\SoWebApi\Structs\Struct;
8-
use roydejong\SoWebApi\WebApiException;
5+
use SoftwarePunt\SoWebApi\Client;
6+
use SoftwarePunt\SoWebApi\Structs\OData\ODataPageResponse;
7+
use SoftwarePunt\SoWebApi\Structs\Struct;
8+
use SoftwarePunt\SoWebApi\WebApiException;
99

1010
abstract class Collection
1111
{

src/Collections/CollectionQuery.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?php
22

3-
namespace roydejong\SoWebApi\Collections;
3+
namespace SoftwarePunt\SoWebApi\Collections;
44

5-
use roydejong\SoWebApi\Structs\Struct;
6-
use roydejong\SoWebApi\WebApiException;
5+
use SoftwarePunt\SoWebApi\Structs\Struct;
6+
use SoftwarePunt\SoWebApi\WebApiException;
77

88
class CollectionQuery
99
{

src/Collections/Projects/ProjectCollection.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<?php
22

3-
namespace roydejong\SoWebApi\Collections\Projects;
3+
namespace SoftwarePunt\SoWebApi\Collections\Projects;
44

5-
use roydejong\SoWebApi\Collections\Collection;
6-
use roydejong\SoWebApi\Structs\JsonStruct;
7-
use roydejong\SoWebApi\Structs\Projects\ProjectEntity;
8-
use roydejong\SoWebApi\WebApiException;
5+
use SoftwarePunt\SoWebApi\Collections\Collection;
6+
use SoftwarePunt\SoWebApi\Structs\JsonStruct;
7+
use SoftwarePunt\SoWebApi\Structs\Projects\ProjectEntity;
8+
use SoftwarePunt\SoWebApi\WebApiException;
99

1010
class ProjectCollection extends Collection
1111
{

0 commit comments

Comments
 (0)