The Afosto.io SDK for PHP makes it easy for developers to access and use afosto-io
services.
If you run into any problems please do not hesitate to open an issue at this repository.
API documentation can be found at https://developers.afosto.io.
To get started you'll need:
- a free afosto.io account (signup here)
- make sure you have composer installed to get started quickly
- php 7
You can easily install the client through composer:
composer require afosto/io-sdk
- JanePHP - For generation the api client
- Swagger - API management tool
- Redoc - Great API documentation tool
We use SemVer for versioning. For the versions available, see the tags on this repository.
Connecting with the SDK is easy. You instantiate the sdk with client credentials, and you are ready to make requests additionaly you can add the scopes you want you your request
$scopes = ['iam:users:create'];
$client = new \Afosto\Sdk\Sdk("1234","123456",$scopes);
$user = $client->getAuthorizedClient()->createUser(
(new \Afosto\Sdk\Model\IamUserModel)
->setEmail("[email protected]")
->setFirstName("info")
->setLastName("afosto")
);
//prints the created user id
print_r($user->getId());
This project is licensed under the MIT License - see the LICENSE.md file for details