Skip to content

Latest commit

 

History

History
29 lines (20 loc) · 415 Bytes

README.md

File metadata and controls

29 lines (20 loc) · 415 Bytes

yo-php

Send Yos from your PHP app with 2 lines of code.

Example

<?php

// Add file
require('yo.php');

// Get an API Key at dev.justyo.co
$apiKey = 'YOUR_API_KEY';

// Instanciate
$yo = new Yo($apiKey);

// Send a Yo to all your subscribers
$yo->all();

// Send a Yo to one user
$yo->user('USERNAME');

// Get number of subscribers
$count = $yo->subscribers(); // returns an int or false
?>