File tree 6 files changed +100
-23
lines changed
6 files changed +100
-23
lines changed Original file line number Diff line number Diff line change
1
+ /vendor /
2
+ composer.lock
3
+ phpcs.xml
4
+ phpunit.xml
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" ?>
2
+ <skipper version =" 3.3.7.1828" mvc =" Without MVC" orm =" Doctrine2" name =" laravel-doctrine-oauth2" uuid =" ded719d5-093a-4cc1-a177-81fbac436a03" >
3
+ <module name =" \laravel-doctrine-oauth2" local-name =" laravel-doctrine-oauth2" namespace =" \ApiSkeletons\Laravel\Doctrine\OAuth2" local-namespace =" ApiSkeletons\Laravel\Doctrine\OAuth2" export-format =" Doctrine2PhpAttributes" export-path =" ." uuid =" da2d1e0a-048e-4728-a980-e3e6024e6b59" >
4
+ <entity name =" \ApiSkeletons\Laravel\Doctrine\OAuth2\ClientEntity" local-name =" ClientEntity" namespace =" \ApiSkeletons\Laravel\Doctrine\OAuth2" uuid =" b53a5fbc-5faa-483d-abc1-cfb438c683d5" >
5
+ <field name =" identifier" type =" string" required =" true" unique =" true" primary =" true" uuid =" d3be23a3-6c81-4ec1-b456-89d371525f0b" />
6
+ <field name =" name" type =" string" required =" true" uuid =" 5600a465-dbdf-4309-a037-26e3db3e9dfb" />
7
+ <field name =" redirectUrl" type =" string" uuid =" 15443880-5c28-44c7-b1fd-3abddaa1969b" />
8
+ <field name =" isConfidential" type =" boolean" required =" true" uuid =" 99209800-1e8d-4fe1-ae1e-e1a313a5c2cf" />
9
+ </entity >
10
+ </module >
11
+ <visual-data >
12
+ <entity uuid =" b53a5fbc-5faa-483d-abc1-cfb438c683d5" bg-color =" #FFFFFF" hdr-color =" #D2D2D2" position-x =" 10" position-y =" 20" />
13
+ <module uuid =" da2d1e0a-048e-4728-a980-e3e6024e6b59" bg-color =" #FEFCE8" position-x =" 61" position-y =" 72" size-x =" 11" size-x2 =" 539" size-y =" 22" size-y2 =" 428" />
14
+ <project uuid =" ded719d5-093a-4cc1-a177-81fbac436a03" size-x =" 0" size-x2 =" 620" size-y =" 0" size-y2 =" 520" />
15
+ </visual-data >
16
+ </skipper >
Original file line number Diff line number Diff line change 1
- Doctrine OAuth2 Adapter for Laravel
2
- ===================================
3
-
4
- This library is functionally identical to Laravel Passport but it is implemented
5
- against Doctrine instead of Eloquent.
6
-
7
-
8
- Why Not Passport?
9
- -----------------
10
-
11
- The database structure for Passport lacks any referential integrity. This
12
- is improper database design because it allows for orphan data in your database.
13
-
14
- This library not only implements referential integrity between its own schema
15
- but allows for dynamic relationships to your authtentication tables at run time
16
- thereby creating referential integrity across the implementation.
17
-
1
+ Doctrine ORM OAuth2 Adapter for Laravel
2
+ =======================================
18
3
19
4
Installation
20
5
------------
21
6
22
7
Run the following to install this library using [ Composer] ( https://getcomposer.org/ ) :
23
8
24
9
``` bash
25
- composer require api-skeletons/laravel-doctrine-oauth2
10
+ composer require api-skeletons/laravel-doctrine-orm- oauth2
26
11
```
27
-
28
-
29
- Entity Relationship Diagram
30
- ---------------------------
31
-
Original file line number Diff line number Diff line change
1
+ {
2
+ "name" : " api-skeletons/laravel-doctrine-orm-oauth2" ,
3
+ "description" : " Doctrine OAuth2 Adapter for Laravel" ,
4
+ "type" : " library" ,
5
+ "require" : {
6
+ "league/oauth2-server" : " ^8.5" ,
7
+ "doctrine/orm" : " ^3.1"
8
+ },
9
+ "require-dev" : {
10
+ "php-parallel-lint/php-parallel-lint" : " ^1.4" ,
11
+ "vimeo/psalm" : " ^5.23" ,
12
+ "doctrine/coding-standard" : " ^12.0" ,
13
+ "phpunit/phpunit" : " ^3.7"
14
+ },
15
+ "license" : " MIT" ,
16
+ "autoload" : {
17
+ "psr-4" : {
18
+ "ApiSkeletons\\ Laravel\\ Doctrine\\ ORM\\ OAuth2\\ " : " src/"
19
+ }
20
+ },
21
+ "authors" : [
22
+ {
23
+ "name" : " Tom H Anderson" ,
24
+ "email" : " tom.h.anderson@gmail.com"
25
+ }
26
+ ],
27
+ "scripts" : {
28
+ "test" : [
29
+ " vendor/bin/parallel-lint src tests" ,
30
+ " vendor/bin/phpcs" ,
31
+ " vendor/bin/psalm" ,
32
+ " vendor/bin/phpunit"
33
+ ]
34
+ },
35
+ "config" : {
36
+ "allow-plugins" : {
37
+ "dealerdirect/phpcodesniffer-composer-installer" : true
38
+ }
39
+ }
40
+ }
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" ?>
2
+ <ruleset >
3
+ <arg name =" basepath" value =" ." />
4
+ <arg name =" extensions" value =" php" />
5
+ <arg name =" parallel" value =" 80" />
6
+ <arg name =" cache" value =" .phpcs-cache" />
7
+ <arg name =" colors" />
8
+
9
+ <!-- Ignore warnings, show progress of the run and show sniff names -->
10
+ <arg value =" nps" />
11
+
12
+ <!-- Directories to be checked -->
13
+ <file >src</file >
14
+ <file >test</file >
15
+
16
+ <!-- Include full Doctrine Coding Standard -->
17
+ <rule ref =" Doctrine" >
18
+ <exclude name =" SlevomatCodingStandard.Classes.SuperfluousAbstractClassNaming.SuperfluousPrefix" />
19
+ </rule >
20
+ </ruleset >
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" ?>
2
+ <psalm
3
+ errorLevel =" 4"
4
+ resolveFromConfigFile =" true"
5
+ findUnusedBaselineEntry =" true"
6
+ findUnusedCode =" false"
7
+ xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
8
+ xmlns =" https://getpsalm.org/schema/config"
9
+ xsi : schemaLocation =" https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
10
+ >
11
+ <projectFiles >
12
+ <directory name =" src" />
13
+ <ignoreFiles >
14
+ <directory name =" vendor" />
15
+ </ignoreFiles >
16
+ </projectFiles >
17
+ </psalm >
You can’t perform that action at this time.
0 commit comments