Download the PHP package apifreaks/sdk without Composer
On this page you can find all versions of the php package apifreaks/sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download apifreaks/sdk
More information about apifreaks/sdk
Files in apifreaks/sdk
Package sdk
Short Description Official PHP SDK for APIFreaks APIs
License MIT
Homepage https://github.com/api-freaks/af-php-sdk
Informations about the package sdk
Apifreaks PHP SDK
The Apifreaks PHP library provides convenient access to the Apifreaks APIs from PHP.
Table of Contents
- Installation
- Reference
- Usage
- Environments
- Errors
- Request Types
- Advanced
- Retries
- Timeouts
- Additional Headers
- Additional Query String Parameters
- Contributing
Installation
Install the package with Composer:
Reference
A full reference for this library is available here.
Usage
Instantiate and use the client with the following:
Environments
This SDK allows you to configure the base URL for API requests.
Errors
When the API returns a non-success status code, the SDK throws Apifreaks\Exceptions\ApifreaksApiException.
Request Types
The SDK exports request objects under the Apifreaks\Requests namespace and response objects under the Apifreaks\Types namespace.
Advanced
Retries
The SDK supports automatic retries. The default retry count is 2. You can configure retries globally on the client or per request.
Timeouts
Configure request timeouts globally on the client or per request.
Additional Headers
You can add custom headers globally on the client or per request.
Additional Query String Parameters
You can add custom query parameters to individual requests.
Contributing
While we value open-source contributions to this SDK, this library is generated programmatically. Additions made directly to this library would have to be moved over to our generation code, otherwise they would be overwritten upon the next generated release. Feel free to open a PR as a proof of concept, but know that we will not be able to merge it as-is. We suggest opening an issue first to discuss with us!
On the other hand, contributions to the README are always very welcome!
All versions of sdk with dependencies
ext-json Version *
psr/http-client Version ^1.0
psr/http-client-implementation Version ^1.0
psr/http-factory Version ^1.0
psr/http-factory-implementation Version ^1.0
psr/http-message Version ^1.1 || ^2.0
php-http/discovery Version ^1.0
php-http/multipart-stream-builder Version ^1.0