Download the PHP package wadify/wadify-sdk-php without Composer
On this page you can find all versions of the php package wadify/wadify-sdk-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package wadify-sdk-php
wadify-sdk-php - Version 1.0.9
The Wadify SDK for PHP makes it easy for developers to access Wadify in their PHP code.
Resources
- README file – For both getting started and in-depth SDK usage information
- Issues – Report issues, submit pull requests, and get involved
- @wadifytech – Follow us on Twitter
Features
- Provides easy-to-use HTTP clients for all supported Wadify services and authentication protocols.
- Is built on Guzzle, and utilizes many of its features, including persistent connections, asynchronous requests, middlewares, etc.
Getting started
- Sign up for Wadify - Before you begin, you need to sign up for a Wadify account and retrieve your Wadify credentials
- Minimum requirements - To run the SDK, your system will need to meet the minimum requirements, including having PHP >= 5.6 compiled with the cURL extension and cURL 7.16.2+ compiled with a TLS backend (e.g., NSS or OpenSSL).
- Install the SDK – Using Composer is the recommended way to install the Wadify SDK for PHP. The SDK is available via Packagist under the wadify/wadify-sdk-php package.
- Using the SDK – The best way to become familiar with how to use the SDK is to read the following section. The Getting Started Guide will help you become familiar with the basic concepts.
User guide
Installation
Via composer cli
Via composer json
and then
Create a Wadify client
Example with only required options
Example with different token provider
Required options
- apiKey: API key
- clientId: Client identifier
- clientSecret: Client secret
Not required options
- version: Block your desired api version. Ex. v1 or latest
- sandbox: true or false. If you want to use production or sandbox mode. Production by default
- token: Token configuration array.
- provider: Provider class string. By default we are using the FileSystemProvider
- args: Arguments we need in the provider. By default we are sending a standard path. /tmp/wadify/token.json
Use the Wadify Client
Get user
Get transactions
Get transaction
Abort transaction
Create transaction
Custom token storage provider
You can create your own token storage provider. By default we are using the FileSystemProvider.
Example of custom token storage provider
The arguments in the constructor are actually coming from the args value in the client configuration.
For further information about the data to send check the API Docs
All versions of wadify-sdk-php with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.6
guzzlehttp/guzzle Version ^6.2
symfony/dependency-injection Version ^3.0
symfony/config Version ^3.0
symfony/yaml Version ^3.0
sainsburys/guzzle-oauth2-plugin Version ~3.0
guzzlehttp/guzzle Version ^6.2
symfony/dependency-injection Version ^3.0
symfony/config Version ^3.0
symfony/yaml Version ^3.0
sainsburys/guzzle-oauth2-plugin Version ~3.0
The package wadify/wadify-sdk-php contains the following files
Loading the files please wait ....