yingfan / m3o-php
M3O client for PHP
v0.0.6
2021-07-11 12:53 UTC
Requires
- php: >=7.4.0|>=8.0.0
- ext-json: *
- giggsey/libphonenumber-for-php: ^8.12
- guzzlehttp/guzzle: ^7.3
Requires (Dev)
- phpstan/phpstan: ^0.12.90
This package is auto-updated.
Last update: 2024-03-19 23:31:39 UTC
README
M3O Client for PHP
Installation
composer require cyingfan/m3o-php
Set up
- 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.
Usage example
use M3O\Factory; $m3o = (new Factory())->getM3O(); echo $m3o->getHelloworldService()->call('John Doe'), "\n";