Skip to content

Latest commit

 

History

History
61 lines (43 loc) · 1.25 KB

README.md

File metadata and controls

61 lines (43 loc) · 1.25 KB

subscription-api-php-client

The Yoast provisioning API

This PHP package is automatically generated by the Swagger Codegen project:

  • API version: 1.0.0
  • Build package: io.swagger.codegen.v3.generators.php.PhpClientCodegen

Requirements

PHP 5.5 and later

Installation & Usage

Composer

To install the bindings via Composer, add the following to composer.json:

{
  "repositories": [
    {
      "type": "git",
      "url": "https://github.com/yoast/subscription-api-php-client.git"
    }
  ],
  "require": {
    "yoast/subscription-api-php-client": "*@dev"
  }
}

Then run composer install

Manual Installation

Download the files and include autoload.php:

    require_once('/path/to/subscription-api-php-client/vendor/autoload.php');

Tests

To run the unit tests:

composer install
./vendor/bin/phpunit

Getting Started

Please follow the installation procedure and then run the following:

<?php
require_once(__DIR__ . '/vendor/autoload.php');
?>

Documentation on how to use the subscription API, can be found in the developer docs.