Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/silinternational/idp-id-broker-php-client

PHP client to interact with our IdP ID Broker's API: https://github.com/silinternational/idp-id-broker
https://github.com/silinternational/idp-id-broker-php-client

Last synced: about 1 month ago
JSON representation

PHP client to interact with our IdP ID Broker's API: https://github.com/silinternational/idp-id-broker

Awesome Lists containing this project

README

        

# idp-id-broker-php-client
PHP client to interact with our [IdP ID Broker](https://github.com/silinternational/idp-id-broker)'s API.

This client is built on top of
[Guzzle](http://docs.guzzlephp.org/en/stable/), the PHP HTTP Client.
Guzzle has a simple way to create API clients by describing the API in a
Swagger-like format without the need to implement every method yourself. So
adding support for more APIs is relatively simple.

## Install ##
Installation is simple with [Composer](https://getcomposer.org/):

$ composer require silinternational/idp-id-broker-php-client

## Usage ##

Example:

```php
[
'timeout' => 10, // An (optional) custom HTTP timeout, in seconds.
],
]
);

$users = $idBrokerClient->listUsers();
```

## User Information ##
Information about a user returned by this client (such as by `getUser(...)`) can
include the following fields:

- `employee_id` (string)
- `first_name` (string)
- `last_name` (string)
- `display_name` (string)
- `username` (string)
- `email` (string)
- `active` (string: 'yes' or 'no')
- `locked` (string: 'yes' or 'no')

## Tests ##

To run the unit tests for this, run `make test`.

## Guzzle Service Client Notes ##
- Tutorial on developing an API client with Guzzle Web Services:

- Presentation by Jeremy Lindblom:

- Example by Jeremy Lindblom:

- Parameter docs in source comments:

- Guzzle 3 Service Descriptions documentation (at least mostly still relevant):