Getting Started =============== Installation ------------ Install `nxsys/library.client-brex `_ with `Composer `_. .. code-block:: composer require nxsys/library.client-brex And please don't forget .. code-block:: php `_. If you are not using an `PSR-7 aware HTTP client `_, then you will need to `install one `_. Install the package below. .. _code: .. code-block:: composer require symfony/http-client We have tested this against `Symfony's Http Client `_ which bundles a client and appropriate factories (`nyholm/psr7 `_). .. note:: If this is confusing please read https://docs.php-http.org/en/latest/httplug/users.html and don't hesitate to `chat with us `_! Calling the API ---------------- Calling this library is fairly straightforward. You can jump right in without requiring too much boilerplate. We like simplicity! .. code-block:: php setAuthKey('BREX TOKEN') #consider using a token vault ->setupTeamClient(); /** @var BrexSdk\API\Team\Client */ $oTeamClient; //... OR //if you will be doing work across the API, use the following convenience method $oTeamClient=$oSDK->setupAllClients()->getTeamClient(); /** @var BrexSdk\API\Team\Model\CompanyResponse */ $aCompanyDetails=$oTeamClient->getCompany(); $sCompanyName=$aCompanyDetails->getLegalName(); // ACME Corp, Inc.