From 22c1e99544f27b164bfec7bfb4b709aa9e271aa1 Mon Sep 17 00:00:00 2001 From: Fuad Ar-Radhi Date: Sun, 9 Aug 2020 10:54:04 +0700 Subject: [PATCH] fix psr --- composer.json | 8 ++++++-- src/{index.php => SSOClient.php} | 17 ----------------- src/SSOResult.php | 28 ++++++++++++++++++++++++++++ 3 files changed, 34 insertions(+), 19 deletions(-) rename src/{index.php => SSOClient.php} (87%) create mode 100644 src/SSOResult.php diff --git a/composer.json b/composer.json index 25c9e05..4240581 100644 --- a/composer.json +++ b/composer.json @@ -2,8 +2,7 @@ "name": "fuadarradhi/ssoacehphp", "description": "SSO Aceh client SDK for PHP language", "type": "library", - "require": { - }, + "require": {}, "license": "MIT", "authors": [ { @@ -11,5 +10,10 @@ "email": "fuad.arradhi@gmail.com" } ], + "autoload": { + "psr-4": { + "SSOAceh\\PHPClient\\": "src/" + } + }, "minimum-stability": "stable" } diff --git a/src/index.php b/src/SSOClient.php similarity index 87% rename from src/index.php rename to src/SSOClient.php index 1efb956..e23e15e 100644 --- a/src/index.php +++ b/src/SSOClient.php @@ -10,23 +10,6 @@ namespace SSOAceh\PHPClient; -/** - * SSO Result - * return value untuk user setelah proses parsing, - */ -class SSOResult{ - public $ID; - public $NIK; - public $NIP; - public $Nama; - public $HP; - public $Email; - public $TelegramID; - public $EmailAlternatif; - public $Avatar; - public $Datetime; -} - class SSOClient{ /** diff --git a/src/SSOResult.php b/src/SSOResult.php new file mode 100644 index 0000000..948d84a --- /dev/null +++ b/src/SSOResult.php @@ -0,0 +1,28 @@ +