PHP Extension to interface with Nabaztags
- C 93.6%
- PHP 3.5%
- M4 1.9%
- JavaScript 1%
| tests | ||
| config.m4 | ||
| config.w32 | ||
| example.php | ||
| EXPERIMENTAL | ||
| LICENSE | ||
| nabaztag.c | ||
| php_nabaztag.h | ||
| README.md | ||
Readme
Note: this is a very old extension that was developed for PHP 5.x. As such, it will likely not work anymore.
Introduction
This is a php extension which interacts with Nabaztags (Those cute rabbits, see https://en.wikipedia.org/wiki/Nabaztag).
Usage Information
Once installed, you can use it like this:
# You can find these values on the nabaztag site when you register the nabaztag
$serial = "xxxxxxxxx";
$token = "xxxxxxxxxx";
$nabaztag = new Nabaztag($serial, $token);
# text-to-speech
$nabaztag->tts("Hello world");
# other methods
string $nabaztag->getToken();
string $nabaztag->getSerial();
boolean $nabaztag->setToken(string $token);
boolean $nabaztag->setSerial(string $serial);
Furthermore, it registers a php.ini setting nabaztag.api_url which holds,
well, the api url which is used to communicate with your nabaztag:
# Currently returns "http://api.nabaztag.com/vl/FR/api.jsp?"
echo ini_get("nabaztag.api_url");