Skip to content

Latest commit

 

History

History
executable file
·
61 lines (43 loc) · 1.07 KB

README.md

File metadata and controls

executable file
·
61 lines (43 loc) · 1.07 KB

Spektrix PHP Wrapper

A wrapper for the Spektrix API

Install

Via Composer

{
    "require": {
        "christhesoul/spektrix": "~1.0"
    }
}

Configuration

You will need a few things:

  • Spektrix API key
  • Valid Spektrix .crt file
  • Valid Spektrix .key file
  • The API URL endpoint for your customer
// 1. Composer magic
require('vendor/autoload.php');
// 2. Load your secret stuff
Dotenv::load(__DIR__);
// 3. Throw an error if your secret stuff falls short (see 2)
Dotenv::required(
  [
    'SPEKTRIX_API_KEY',
    'SPEKTRIX_CERTIFICATE_PATH',
    'SPEKTRIX_KEY_PATH',
    'SPEKTRIX_API_URL'
  ]
);

Testing

$ phpunit

Contributing

Please see CONTRIBUTING for details.

Credits

License

The MIT License (MIT). Please see License File for more information.