Skip to content

Commit 281fd23

Browse files
authored
Merge pull request #6 from eschricker/refactor/change-namespace
changed namespace to PHPOpenSourceSaver
2 parents 700222a + 11ddfcd commit 281fd23

File tree

104 files changed

+541
-541
lines changed

Some content is hidden

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

104 files changed

+541
-541
lines changed

.github/FUNDING.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# These are supported funding model platforms
22

33
github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
4-
patreon: seantymon
4+
patreon:
55
open_collective: # Replace with a single Open Collective username
66
ko_fi: # Replace with a single Ko-fi username
77
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel

composer.json

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "tymon/jwt-auth",
2+
"name": "php-open-source-saver/jwt-auth",
33
"description": "JSON Web Token Authentication for Laravel and Lumen",
44
"keywords": [
55
"auth",
@@ -8,10 +8,10 @@
88
"jwt",
99
"laravel"
1010
],
11-
"homepage": "https://github.com/tymondesigns/jwt-auth",
11+
"homepage": "https://github.com/PHP-Open-Source-Saver/jwt-auth",
1212
"support": {
13-
"issues": "https://github.com/tymondesigns/jwt-auth/issues",
14-
"source": "https://github.com/tymondesigns/jwt-auth"
13+
"issues": "https://github.com/PHP-Open-Source-Saver/jwt-auth/issues",
14+
"source": "https://github.com/PHP-Open-Source-Saver/jwt-auth"
1515
},
1616
"license": "MIT",
1717
"authors": [
@@ -20,6 +20,11 @@
2020
"email": "[email protected]",
2121
"homepage": "https://tymon.xyz",
2222
"role": "Developer"
23+
},
24+
{
25+
"name": "Eric Schricker",
26+
"email": "[email protected]",
27+
"role": "Developer"
2328
}
2429
],
2530
"require": {
@@ -42,12 +47,12 @@
4247
},
4348
"autoload": {
4449
"psr-4": {
45-
"Tymon\\JWTAuth\\": "src/"
50+
"PHPOpenSourceSaver\\JWTAuth\\": "src/"
4651
}
4752
},
4853
"autoload-dev": {
4954
"psr-4": {
50-
"Tymon\\JWTAuth\\Test\\": "tests/"
55+
"PHPOpenSourceSaver\\JWTAuth\\Test\\": "tests/"
5156
}
5257
},
5358
"extra": {
@@ -56,20 +61,15 @@
5661
},
5762
"laravel": {
5863
"aliases": {
59-
"JWTAuth": "Tymon\\JWTAuth\\Facades\\JWTAuth",
60-
"JWTFactory": "Tymon\\JWTAuth\\Facades\\JWTFactory"
64+
"JWTAuth": "PHPOpenSourceSaver\\JWTAuth\\Facades\\JWTAuth",
65+
"JWTFactory": "PHPOpenSourceSaver\\JWTAuth\\Facades\\JWTFactory"
6166
},
6267
"providers": [
63-
"Tymon\\JWTAuth\\Providers\\LaravelServiceProvider"
68+
"PHPOpenSourceSaver\\JWTAuth\\Providers\\LaravelServiceProvider"
6469
]
6570
}
6671
},
67-
"funding": [
68-
{
69-
"type": "patreon",
70-
"url": "https://www.patreon.com/seantymon"
71-
}
72-
],
72+
"funding": [],
7373
"config": {
7474
"sort-packages": true
7575
},

config/config.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@
275275
|
276276
*/
277277

278-
'jwt' => Tymon\JWTAuth\Providers\JWT\Lcobucci::class,
278+
'jwt' => PHPOpenSourceSaver\JWTAuth\Providers\JWT\Lcobucci::class,
279279

280280
/*
281281
|--------------------------------------------------------------------------
@@ -286,7 +286,7 @@
286286
|
287287
*/
288288

289-
'auth' => Tymon\JWTAuth\Providers\Auth\Illuminate::class,
289+
'auth' => PHPOpenSourceSaver\JWTAuth\Providers\Auth\Illuminate::class,
290290

291291
/*
292292
|--------------------------------------------------------------------------
@@ -297,7 +297,7 @@
297297
|
298298
*/
299299

300-
'storage' => Tymon\JWTAuth\Providers\Storage\Illuminate::class,
300+
'storage' => PHPOpenSourceSaver\JWTAuth\Providers\Storage\Illuminate::class,
301301

302302
],
303303

docs/auth-guard.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,13 @@ Get the currently authenticated user or throw an exception.
5252
```php
5353
try {
5454
$user = auth()->userOrFail();
55-
} catch (\Tymon\JWTAuth\Exceptions\UserNotDefinedException $e) {
55+
} catch (\PHPOpenSourceSaver\JWTAuth\Exceptions\UserNotDefinedException $e) {
5656
// do something
5757
}
5858

5959
```
6060

61-
If the user is not set, then a `Tymon\JWTAuth\Exceptions\UserNotDefinedException` will be thrown
61+
If the user is not set, then a `PHPOpenSourceSaver\JWTAuth\Exceptions\UserNotDefinedException` will be thrown
6262

6363
### logout()
6464

docs/laravel-installation.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Add the service provider to the `providers` array in the `config/app.php` config
1717

1818
...
1919

20-
Tymon\JWTAuth\Providers\LaravelServiceProvider::class,
20+
PHPOpenSourceSaver\JWTAuth\Providers\LaravelServiceProvider::class,
2121
]
2222
```
2323

@@ -28,7 +28,7 @@ Add the service provider to the `providers` array in the `config/app.php` config
2828
Run the following command to publish the package config file:
2929

3030
```bash
31-
php artisan vendor:publish --provider="Tymon\JWTAuth\Providers\LaravelServiceProvider"
31+
php artisan vendor:publish --provider="PHPOpenSourceSaver\JWTAuth\Providers\LaravelServiceProvider"
3232
```
3333

3434
You should now have a `config/jwt.php` file that allows you to configure the basics of this package.

docs/lumen-installation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Add the following snippet to the `bootstrap/app.php` file under the providers se
2929
$app->register(App\Providers\AuthServiceProvider::class);
3030

3131
// Add this line
32-
$app->register(Tymon\JWTAuth\Providers\LumenServiceProvider::class);
32+
$app->register(PHPOpenSourceSaver\JWTAuth\Providers\LumenServiceProvider::class);
3333
```
3434

3535
Then uncomment the `auth` middleware in the same file:

docs/quick-start.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Before continuing, make sure you have installed the package as per the installat
33

44
### Update your User model
55

6-
Firstly you need to implement the `Tymon\JWTAuth\Contracts\JWTSubject` contract on your User model,
6+
Firstly you need to implement the `PHPOpenSourceSaver\JWTAuth\Contracts\JWTSubject` contract on your User model,
77
which requires that you implement the 2 methods `getJWTIdentifier()` and `getJWTCustomClaims()`.
88

99
The example below should give you an idea of how this could look. Obviously you should make any
@@ -14,7 +14,7 @@ changes, as necessary, to suit your own needs.
1414

1515
namespace App;
1616

17-
use Tymon\JWTAuth\Contracts\JWTSubject;
17+
use PHPOpenSourceSaver\JWTAuth\Contracts\JWTSubject;
1818
use Illuminate\Notifications\Notifiable;
1919
use Illuminate\Foundation\Auth\User as Authenticatable;
2020

src/Blacklist.php

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,17 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
namespace Tymon\JWTAuth;
12+
namespace PHPOpenSourceSaver\JWTAuth;
1313

14-
use Tymon\JWTAuth\Contracts\Providers\Storage;
15-
use Tymon\JWTAuth\Support\Utils;
14+
use PHPOpenSourceSaver\JWTAuth\Contracts\Providers\Storage;
15+
use PHPOpenSourceSaver\JWTAuth\Support\Utils;
1616

1717
class Blacklist
1818
{
1919
/**
2020
* The storage.
2121
*
22-
* @var \Tymon\JWTAuth\Contracts\Providers\Storage
22+
* @var \PHPOpenSourceSaver\JWTAuth\Contracts\Providers\Storage
2323
*/
2424
protected $storage;
2525

@@ -47,7 +47,7 @@ class Blacklist
4747
/**
4848
* Constructor.
4949
*
50-
* @param \Tymon\JWTAuth\Contracts\Providers\Storage $storage
50+
* @param \PHPOpenSourceSaver\JWTAuth\Contracts\Providers\Storage $storage
5151
*
5252
* @return void
5353
*/
@@ -59,7 +59,7 @@ public function __construct(Storage $storage)
5959
/**
6060
* Add the token (jti claim) to the blacklist.
6161
*
62-
* @param \Tymon\JWTAuth\Payload $payload
62+
* @param \PHPOpenSourceSaver\JWTAuth\Payload $payload
6363
*
6464
* @return bool
6565
*/
@@ -88,7 +88,7 @@ public function add(Payload $payload)
8888
/**
8989
* Get the number of minutes until the token expiry.
9090
*
91-
* @param \Tymon\JWTAuth\Payload $payload
91+
* @param \PHPOpenSourceSaver\JWTAuth\Payload $payload
9292
*
9393
* @return int
9494
*/
@@ -106,7 +106,7 @@ protected function getMinutesUntilExpired(Payload $payload)
106106
/**
107107
* Add the token (jti claim) to the blacklist indefinitely.
108108
*
109-
* @param \Tymon\JWTAuth\Payload $payload
109+
* @param \PHPOpenSourceSaver\JWTAuth\Payload $payload
110110
*
111111
* @return bool
112112
*/
@@ -120,7 +120,7 @@ public function addForever(Payload $payload)
120120
/**
121121
* Determine whether the token has been blacklisted.
122122
*
123-
* @param \Tymon\JWTAuth\Payload $payload
123+
* @param \PHPOpenSourceSaver\JWTAuth\Payload $payload
124124
*
125125
* @return bool
126126
*/
@@ -140,7 +140,7 @@ public function has(Payload $payload)
140140
/**
141141
* Remove the token (jti claim) from the blacklist.
142142
*
143-
* @param \Tymon\JWTAuth\Payload $payload
143+
* @param \PHPOpenSourceSaver\JWTAuth\Payload $payload
144144
*
145145
* @return bool
146146
*/
@@ -199,7 +199,7 @@ public function getGracePeriod()
199199
/**
200200
* Get the unique key held within the blacklist.
201201
*
202-
* @param \Tymon\JWTAuth\Payload $payload
202+
* @param \PHPOpenSourceSaver\JWTAuth\Payload $payload
203203
*
204204
* @return mixed
205205
*/

src/Claims/Audience.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
namespace Tymon\JWTAuth\Claims;
12+
namespace PHPOpenSourceSaver\JWTAuth\Claims;
1313

1414
class Audience extends Claim
1515
{

src/Claims/Claim.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
namespace Tymon\JWTAuth\Claims;
12+
namespace PHPOpenSourceSaver\JWTAuth\Claims;
1313

1414
use Illuminate\Contracts\Support\Arrayable;
1515
use Illuminate\Contracts\Support\Jsonable;
1616
use JsonSerializable;
17-
use Tymon\JWTAuth\Contracts\Claim as ClaimContract;
17+
use PHPOpenSourceSaver\JWTAuth\Contracts\Claim as ClaimContract;
1818

1919
abstract class Claim implements Arrayable, ClaimContract, Jsonable, JsonSerializable
2020
{
@@ -47,7 +47,7 @@ public function __construct($value)
4747
*
4848
* @param mixed $value
4949
*
50-
* @throws \Tymon\JWTAuth\Exceptions\InvalidClaimException
50+
* @throws \PHPOpenSourceSaver\JWTAuth\Exceptions\InvalidClaimException
5151
*
5252
* @return $this
5353
*/

0 commit comments

Comments
 (0)