Skip to content

warrant-dev/warrant-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Warrant PHP SDK

Use Warrant in PHP projects.

Latest Stable Version License

Installation

Install the SDK using Composer:

composer require warrant-dev/warrant-php

Include the SDK using Composer's autoload:

require_once('vendor/autoload.php');

Usage

Import the Warrant client and pass your API key to the constructor to get started:

$warrant = new \Warrant\Client(
    new \Warrant\Config("api_test_f5dsKVeYnVSLHGje44zAygqgqXiLJBICbFzCiAg1E=")
);

$newUser = $warrant->createUser(new \Warrant\User("my-user-id"));

We’ve used a random API key in these code examples. Replace it with your actual publishable API keys to test this code through your own Warrant account.

For more information on how to use the Warrant API, please refer to the Warrant API reference.

Warrant Documentation