2017 © Pedro Peláez
 

library icecast-auth

PHP librairy used to authenticate listeners via Icecast authentication via the URL system

image

gbrousse/icecast-auth

PHP librairy used to authenticate listeners via Icecast authentication via the URL system

  • Monday, November 2, 2015
  • by gbrousse
  • Repository
  • 2 Watchers
  • 3 Stars
  • 7 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

IcecastAuth Build Status Coverage Status

Total Downloads Latest Stable Version, (*1)

PHP library used to authenticate listeners via Icecast authentication (URL) (http://icecast.org/docs/icecast-2.4.1/auth.html). This library execute your own functions or methods on Icesast server events., (*2)

Installation

Install the latest version with, (*3)

$ composer require gbrousse/icecast-auth

Basic usage

Create a PHP File that the Icecast server can reach

<?php

use IcecastAuth\IcecastAuth; 
$IceAuth = new IcecastAuth();

// Setup
$IceAuth->setAuthCallback('function1'); // REQUIRED : Set the function call for the authentication 

// Execute
$IceAuth->execute();

Setup callback function will receive as argument an array containing : - server : domain of the Icecast server - port : the port use to call the stream + client : an unique id set by Icecast for the listener + mountpoint : the mount called by listener + ip : ip of the listener + all GET parameters in the stream url called by the listener, (*4)

Configure mount on Icecast server

<mount>
    <mount-name>/example.ogg</mount-name>
    <authentication type="url">
        <option name="mount_add" value="[URL OF THE SCRIPT YOU CREATE ABOVE]"/>
        <option name="auth_header" value="icecast-auth-user: 1"/>
        <option name="timelimit_header" value="icecast-auth-timelimit:"/>
    </authentication>
</mount>

Examples

About

Requirements

  • IcecastAuth works with PHP 5.3 or above.

Submitting bugs and feature requests

Bugs and feature request are tracked on GitHub, (*5)

Author

Gregory Brousse - pro@gregory-brousse.fr - http://gregory-brousse.fr, (*6)

License

IcecastAuth is licensed under the LGPL-3.0 License - see the LICENSE file for details, (*7)

The Versions

02/11 2015

dev-master

9999999-dev https://github.com/gbrousse/IcecastAuth

PHP librairy used to authenticate listeners via Icecast authentication via the URL system

  Sources   Download

LGPL-3.0

The Requires

  • php >=5.3

 

The Development Requires

authenticate icecast authetication listeners control

21/10 2015

1.0.1-RC

1.0.1.0-RC https://github.com/gbrousse/IcecastAuth

PHP librairy used to authenticate listeners via Icecast authentication via the URL system

  Sources   Download

LGPL-3.0

The Requires

  • php >=5.3

 

The Development Requires

21/10 2015

1.0.0-RC

1.0.0.0-RC https://github.com/gbrousse/IcecastAuth

PHP librairy used to authenticate listeners via Icecast authentication via the URL system

  Sources   Download

LGPL-3.0

The Requires

  • php >=5.3

 

The Development Requires