2017 © Pedro Peláez
 

library cas-rest-client

PHP client for the CAS REST protocol.

image

epierce/cas-rest-client

PHP client for the CAS REST protocol.

  • Tuesday, May 24, 2016
  • by epierce
  • Repository
  • 1 Watchers
  • 1 Stars
  • 836 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 6 Versions
  • 25 % Grown

The README.md

cas-rest-client

PHP client for the CAS REST protocol, (*1)

System Requirements

You need:, (*2)

  • PHP >= 5.5.0, but the latest stable version of PHP is recommended
  • Composer

Install

Install cas-rest-client using Composer., (*3)

$ composer require epierce/cas-rest-client

Example Usage

setCasServer('https://cas.exmaple.edu');
$client->setCasRestContext('/v1/tickets');
$client->setCredentials("username", "password");

// Login and save TGT to a file
$client->login('/tmp/cas_tgt.json');

// Make a webservice call
$response = $client->get("https://someservice");
print_r(json_decode($response->getBody(), true));

// Make another call using the same CAS session
$headers = ['User-Agent' => 'testing/1.0'];
$post_params = ['param1' => 'foo', param2 => 'bar'];
$response = $client->post("https://someotherservice", $headers, '', $post_params);
print_r(json_decode($response->getBody(), true));

$client->logout();

?>

The Versions

24/05 2016

dev-master

9999999-dev

PHP client for the CAS REST protocol.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Eric Pierce

05/02 2016

dev-develop

dev-develop

PHP client for the CAS REST protocol.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Eric Pierce

05/02 2016

0.3.1

0.3.1.0

PHP client for the CAS REST protocol.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Eric Pierce

05/02 2016

0.3.0

0.3.0.0

PHP client for the CAS REST protocol.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Eric Pierce

26/12 2014

0.2.1

0.2.1.0

PHP client for the CAS REST protocol.

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

by Eric Pierce

26/12 2014

0.2.0

0.2.0.0

PHP client for the CAS REST protocol.

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

by Eric Pierce