Download the PHP package wdevkit/sdk without Composer

On this page you can find all versions of the php package wdevkit/sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package sdk

A sdk to wdevkit services

Latest Version on Packagist GitHub Tests Action Status Total Downloads

A sdk that simplifies the usage of many wdevkit services, with a tested, clean and easy to use api.

Installation

You can install the package via composer:

Usage

The wdevkit/sdk provides api to multiple wdevkit services. The services are provided by the \Wdevkit\Sdk\Api class, by calling the respective service name as a static method, as you can see below:

By calling the static method, a new instance of the service handler will be instantiated, with the given $settings array. In this settings, you must a base_uri and a token, on order to correctly make the requests to each service. You also can pass a client instance to the service. If not provided, a default client using Guzzle will be used, with the given request headers:

Each service handler instantiated may have its own methods, wich will be described in the respective service documentation.

Auth

Fetch User

In order to check if you are authenticated, you can make a request to a wdevkit auth service /sanctum/user endpoint by using the \Wdevkit\Sdk\Api::auth($settings)->fetchUser([]) method.

Checkout

Create a Checkout

In order to create a checkout, you can use the \Wdevkit\Sdk\Api::checkout($settings)->create([]) method from the sdk, and you need to provide the required data.

Payments

Fetch Methods

To fetch payment methods options, you can use the \Wdevkit\Sdk\Api::payments($settings)->fetchMethods([]) method from the sdk.

Create a Payment

To create a payment, you can use the \Wdevkit\Sdk\Api::payments($settings)->create([]) method from the sdk, and you need to provide the required data.

Fetch a Payment

To fetch a previously created payment, you can use the \Wdevkit\Sdk\Api::payments($settings)->fetch($uuid) method from the sdk. You need to provide a payment uuid on the fetch method.

Testing

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.


All versions of sdk with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4|^8.0
guzzlehttp/guzzle Version ^7.1
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package wdevkit/sdk contains the following files

Loading the files please wait ....