Skip to content

vishnumodi1987/prove-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Prove PHP Wrapper

Here's a quick example of integration:

  1. Clone the repository into your PHP application.

    git clone https://github.com/getprove/prove-php
  2. Load the PHP library (API wrapper) for Prove at the top of your script.

    require_once('/path/to/prove-php/lib/Prove.php');
  3. Use the Prove API wrapper to get a list of verifications:

    Prove::setApiKey('some-api-key');
    $verifications = Prove_Verification::list();
    echo $verifications

API

Prove_Verification::all(); - return all entries
Prove_Verification::create( array('tel'=>1234567890) ); - post and return a new entry
Prove_verification::pin(array('id'=>id,'pin'=>pin)) - Verify an entry matching id using pin
Prove_verification::retrieve(id) - Return a single entry matching id

Values

  • tel string -> phone number
  • updated timestamp -> last update
  • created timestamp -> created
  • test bool -> using testApi
  • verified bool -> pin has been entered
  • call bool
  • text bool

About

Prove API wrapper for PHP

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages