library cas-rest-client
PHP client for the CAS REST protocol.
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
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();
?>
dev-master
9999999-dev
PHP client for the CAS REST protocol.
Sources
Download
MIT
The Requires
The Development Requires
by
Eric Pierce
dev-develop
dev-develop
PHP client for the CAS REST protocol.
Sources
Download
MIT
The Requires
The Development Requires
by
Eric Pierce
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
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
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
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