Download the PHP package openpublicmedia/roisolutions-php without Composer
On this page you can find all versions of the php package openpublicmedia/roisolutions-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download openpublicmedia/roisolutions-php
More information about openpublicmedia/roisolutions-php
Files in openpublicmedia/roisolutions-php
Package roisolutions-php
Short Description PHP client for ROI Solutions APIs.
License Apache-2.0
Informations about the package roisolutions-php
ROI Solutions PHP Library
This library abstracts interactions with ROI Solutions APIs.
Implemented APIs:
Installation
Install via composer:
Use
REST API
The OpenPublicMedia\RoiSolutions\Rest\Client
queries the REST API.
Examples
Creating a client
Providing a cache service is also supported (and recommended) when creating the client. If the client has a cache service it will be used to cache the authentication token provided by the API across multiple requests for the lifetime of the token.
A PSR-16 compliant interface is preferred but any class providing
set($key, $value)
and get($key, $default)
methods will suffice.
Handling exceptions
Custom exceptions are provided for 404 response and general errors. Additional information from the API response is captured in these exceptions.
Development goals
See CONTRIBUTING for information about contributing to this project.
v1
- [x] REST API client (
\OpenPublicMedia\RoiSolutions\Rest\Client
) - [x] API direct querying (
$client->request()
) - [x] Result/error handling
- [x] System
- [ ] Donors
- [x] Search donors
- [ ] Account flags support
- [ ] Sub-resources support
- [x] Get donor
- [ ] Support for advanced query parameters (
include
,summary.*
,donations.*
) - [ ] Get flags (BETA)
- [x] Get emails
- [x] Get Passport memberships (BETA)
- [x] Membership ID property
- [ ] Other properties (once finalized)
- [x] Create donor (BETA)
- [x] Add email
- [ ] Add account flag
- [ ] Add primary address
- [ ] Add phone
- [ ] Update donor (BETA)