M3O Client for PHP
composer require cyingfan/m3o-php
- Run
composer require cyingfan/m3o-php
to include the package. - Obtain your API key from Micro Settings page
- Load your API key into environment variable
M3O_AUTH_TOKEN
.m3o-php
loads environment variables usinggetenv()
. Most environment variable libraries such as Symfony Dotenv or PHP dotenv should work.
use M3O\Factory;
$m3o = (new Factory())->getM3O();
echo $m3o->getHelloworldService()->call('John Doe'), "\n";