2017 © Pedro Peláez
 

library unnportal-api

Authenticate and get details about your users as UNN students

image

shalvah/unnportal-api

Authenticate and get details about your users as UNN students

  • Sunday, February 18, 2018
  • by shalvah
  • Repository
  • 1 Watchers
  • 5 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

UNN logo
, (*1)

unnportal-php

PHP library for the UNN API

Latest Stable Version Total Downloads License, (*2)

Authenticate and get details about your application's users through their unnportal details. With this, you can restrict your app's audience to the right people., (*3)

Usage:

``` <?php, (*4)

use \UnnPortal\Portal; use \UnnPortal\PortalException;, (*5)

require 'vendor/autoload.php';, (*6)

$username = "2013/1xxxxx"; $password = "xxxxxx";, (*7)

try { $student = Portal::authenticate($username, $password); echo "Hi there, $student->first_name from the department of $student->department!"; } catch (PortalException $e) { echo $e->getMessage(); } ```, (*8)

The authenticate method returns an instance of \UnnPortal\Student if successful, or throws a PortalException if not., (*9)

For a list of available student details, see the documentation at https://github.com/shalvah/unn-api, (*10)

Installation:

Run composer install shalvah/unnportal-api., (*11)

Contribution

Wanna help improve this package? Thanks! All you need to do: - Fork the project - Clone your fork to your local machine - Make your changes - Commit your changes and push - Open a pull request I'll attend to all PRs as soon as I can!, (*12)

If you like this...

Please star and share! Thanks!, (*13)

The Versions

18/02 2018

dev-master

9999999-dev

Authenticate and get details about your users as UNN students

  Sources   Download

MIT

The Requires

 

unn

29/01 2017

1.2.0

1.2.0.0

Authenticate and get details about your users as UNN students

  Sources   Download

MIT

The Requires

  • php >=5.3.3
  • ext-curl *

 

unn

12/12 2016

1.1.0

1.1.0.0

Authenticate and get details about your users as UNN students

  Sources   Download

MIT

The Requires

  • php >=5.3.3
  • ext-curl *

 

unn

12/12 2016

1.0.0

1.0.0.0

Authenticate and get details about your users as UNN students

  Sources   Download

MIT

The Requires

  • php >=5.3.3
  • ext-curl *

 

unn