grow-services / growclient-php
GROW-Services.net client library for PHP
Installs: 1 021
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 11
Forks: 0
Open Issues: 0
Requires
- symfony/console: ~2.4
This package is auto-updated.
Last update: 2024-10-29 04:59:07 UTC
README
Official GROW-Services.net client library for PHP
Install
You can install the through the composer.
{
"require": {
"grow-services/growclient-php": "dev-master"
}
}
Usage
use GrowClient; use GrowChart\Common\Pregnancy; // This factory can get all client. rest xml and soap. $client = ClientFactory::getInstance()->getClient('rest', $apikey, $apisecret); $preg = new Pregnancy(); $preg->setEdd($edd); $preg->setEthnicity($eoc->client->spirit_ethnicity->toString()); $preg->setParity($para); $preg->setMaternalheight($length); $preg->setMaternalweight($weight); $preg->setGrowchartversion($version); $preg->setGrowchartid($growchartid); $chart = $client->registerPregnancy($preg); print_r($chart);