PHPackages                             phil-lavin/trustico - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. phil-lavin/trustico

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

phil-lavin/trustico
===================

019PHP

Since Sep 26Pushed 12y ago2 watchersCompare

[ Source](https://github.com/phil-lavin/Trustico-PHP)[ Packagist](https://packagist.org/packages/phil-lavin/trustico)[ RSS](/packages/phil-lavin-trustico/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Trustico API Wrapper for PHP
============================

[](#trustico-api-wrapper-for-php)

Introduction
------------

[](#introduction)

There's nothing overly complex about this package - it's just a wrapper around the API. Example usage code below.

The following functions are available on the \\Trustico\\API class:

- test() - Checks to see if the API is working
- hello($message) - A wrapper around the API's Hello method
- order\_status($order\_id) - A wrapper around the API's GetStatus method
- resend\_approver\_email($order\_id) - A wrapper around the API's ResendEmail method with a type of Approver
- resend\_fulfilment\_email($order\_id) - A wrapper around the API's ResendEmail method with a type of Fulfillmnent
- change\_approver\_email($order\_id, $email) - A wrapper around the API's ChangeApproverEmail method
- reissue($order\_id, $email, $csr) - A wrapper around the API's Reissue method
- get\_user\_agreement($product\_name) - A wrapper around the API's GetUserAgreement method
- get\_approver\_list($domain) - A wrapper around the API's GetApproverList. Returns a \\Trustico\\Response\\XML\\ApproverList
- process\_order\_type\_1($data) - A wrapper around the API's ProcessType1 method
- process\_order\_type\_2($data) - A wrapper around the API's ProcessType2 method

Installation
------------

[](#installation)

This code requires PHP &gt;= 5.5.

Supports both Composer installation and regular file inclusion. For Composer, add the following to your composer.json:

```
"require": {
	"phil-lavin/trustico": "dev-master"
}
```

For Composer, the library's classes will autoload if you use Composer's autoloader.

If you don't use Composer, just include src/autoloader.php into your app. This adds an SPL autoloader and you can call classes as required.

Usage example
-------------

[](#usage-example)

```
