Skip to content

benjbdev/spot-hit-php-api-wrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Requirements

PHP >= 5.4

Installation

composer require bb/spot-hit-php-api-wrapper

Usage

<?php
 
use BB\SpotHitClient;
use BB\SpotHitResources;
 
// array of parameters required by spot-hit (except key)  
// see https://www.spot-hit.fr/documentation-api
$data = array(
    "type" => SpotHitClient::SMS_LOWCOST,
    "destinataires" => "+33600000000",
    "message" => "Hello world."
);
 
$client = new SpotHitClient("YOUR_API_KEY");
$response = $client->call(SpotHitResources::$sendSms, $data);

About

A simple PHP wrapper to use Spot-hit.fr API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages