cyingfan / m3o-php

M3O Client for PHP
MIT License
1 stars 0 forks source link

m3o-php

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