dev-master
9999999-dev https://github.com/siegsb/radiorushComplete PHP library for the CentovaCast API
MIT
The Requires
- php >=5.4
The Development Requires
api siegsb radiorush centova centovacast
Complete PHP library for the CentovaCast API
Complete PHP library for the Centova Cast API., (*1)
You can install RadioRush via Composer adding the following line to your require array on your composer.json:
"siegsb/radiorush":"*", (*2)
After run "composer update" on the terminal. Now you can use RadioRush with the autoload.php file.
The namespace is \SiegSB\RadioRush so you can include the library on your code with this:, (*3)
<?php require_once ('vendor/autoload.php'); use \SiegSB\RadioRush; .... // Now you can creates a new instance of RadioRush $rr = new RadioRush; // Also you can define directly the namespace in your instance // Use this instance method if you do not want to use 'use \SiegSB\RadioRush;' $rr = new \SiegSB\RadioRush\RadioRush;
After this, you need to create a new connection with your Centova server using the method "setConnect" with the following params:
* string $server: the URL of your Centova server without the final slash. For example: "http://centova.example.com"
* string $username: The username of your Centova account
* string $password: the password in plain text of your Centova account, (*4)
$rr->setConnect('http://centova.example.com', 'username', 'password');
When you set a new connect, you can make requests to Centova API. If you want to use another connect you can overwrite the setConnect method with the new params or create a diferent instance of RadioRush., (*5)
If you want to make a donation, please use Paypal and send your donation to the email sieg.sb@gmail.com, thanks!, (*6)
Complete PHP library for the CentovaCast API
MIT
api siegsb radiorush centova centovacast