Here's a quick example of integration:
-
Clone the repository into your PHP application.
git clone https://github.com/getprove/prove-php
-
Load the PHP library (API wrapper) for Prove at the top of your script.
require_once('/path/to/prove-php/lib/Prove.php');
-
Use the Prove API wrapper to get a list of verifications:
Prove::setApiKey('some-api-key'); $verifications = Prove_Verification::list(); echo $verifications
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
- 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