M3O Client for PHP
composer require cyingfan/m3o-php
composer require cyingfan/m3o-php
to include the package.M3O_AUTH_TOKEN
.
m3o-php
loads environment variables using getenv()
.
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";