2017 © Pedro Peláez
 

library ncuportal

ncu portal library

image

weigreen/ncuportal

ncu portal library

  • Wednesday, April 8, 2015
  • by andy199310
  • Repository
  • 0 Watchers
  • 2 Stars
  • 63 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

NCU portal login

NCUPortal is a library providing an easier and expressive way to use NCU Portal to let users login to your application., (*1)

Requirements

  • PHP >=5.4

Installation

Add this to your composer.json., (*2)

"require": {
  "weigreen/ncuportal": "v1.0.0"
}

Examples

First phase (create url to redirect user to ncu portal), (*3)

// Set up NCUPortal with your application's domain
$ncuPortal = new NCUPortal('your-application-domain');

// Get Auth URL with call back url
$ncuPortal->getAuthUrl('call-back-url');

PS: callback url is used when user login on NCU Portal and will redirect to callback url, (*4)

Second phase (callback), (*5)

// Set up NCUPortal with your application's domain
$ncuPortal = new NCUPortal('your-application-domain');

// Check if callback is validate or not
// One time used. Second call will be false
if($ncuPortal->checkLoginValidate()){
  echo "Login Real";
  // get login account
  echo $ncuPortal->getLoginAccount();
}else{
  echo "Login is not real >_<";
}

Bug

If you found bugs, please contact me at issue. thanks :), (*6)

License

NCUPortal is licensed under the MIT License., (*7)

The Versions

08/04 2015

dev-master

9999999-dev

ncu portal library

  Sources   Download

MIT

The Requires

 

by Green

login portal ncu

08/04 2015

1.0.0

1.0.0.0

ncu portal library

  Sources   Download

MIT

The Requires

 

by Green

login portal ncu