Skip to content

grow-services/growclient-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

77 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

growclient-php

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);

About

Official GROW-Services.net client library for PHP

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages