yingfan/m3o-php

M3O client for PHP

v0.0.6 2021-07-11 12:53 UTC

README

M3O Client for PHP

Github Build

Installation

composer require cyingfan/m3o-php

Set up

  1. Run composer require cyingfan/m3o-php to include the package.
  2. Obtain your API key from Micro Settings page
  3. Load your API key into environment variable M3O_AUTH_TOKEN. m3o-php loads environment variables using getenv(). Most environment variable libraries such as Symfony Dotenv or PHP dotenv should work.

Usage example

use M3O\Factory;

$m3o = (new Factory())->getM3O();
echo $m3o->getHelloworldService()->call('John Doe'), "\n";

Service completion status