Download the PHP package pili-engineering/pili-sdk-php without Composer
On this page you can find all versions of the php package pili-engineering/pili-sdk-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download pili-engineering/pili-sdk-php
More information about pili-engineering/pili-sdk-php
Files in pili-engineering/pili-sdk-php
Package pili-sdk-php
Short Description Pili Streaming Cloud server-side library for PHP.
License MIT
Homepage https://github.com/pili-engineering/pili-sdk-php
Informations about the package pili-sdk-php
Pili Streaming Cloud server-side library for PHP
Features
- Stream Create,Get,List
- [x] $hub->createStream()
- [x] $hub->getStream()
- [x] $hub->listStreams()
- Stream operations else
- [x] stream->toJSONString()
- [x] stream->update()
- [x] stream->disable()
- [x] stream->enable()
- [x] stream->status()
- [x] stream->rtmpPublishUrl()
- [x] stream->rtmpLiveUrls()
- [x] stream->hlsLiveUrls()
- [x] stream->httpFlvLiveUrls()
- [x] stream->segments()
- [x] stream->hlsPlaybackUrls()
- [x] stream->snapshot()
- [x] stream->saveAs()
- [x] stream->delete()
Contents
- Installation
- Usage
- Configuration
- Hub
- Instantiate a Pili Hub object
- Create a new Stream
- Get a Stream
- List Streams
- Stream
- To JSON string
- Update a Stream
- Disable a Stream
- Enable a Stream
- Get Stream status
- Generate RTMP publish URL
- Generate RTMP live play URLs
- Generate HLS live play URLs
- Generate Http-Flv live play URLs
- Get Stream segments
- Generate HLS playback URLs
- Save Stream as a file
- Snapshot Stream
- Delete a Stream
- History
Installaion
Requirements
- PHP >= 5.3.0
Install with Composer
If you're using Composer to manage dependencies, you can add pili-sdk-php with it.
You can add Pili as a dependency using the composer.phar
CLI:
Alternatively, you can specify pili-sdk-php as a dependency in your project's
existing composer.json
file:
After installing, you need to require Composer's autoloader:
You can find out more on how to install Composer, configure autoloading, and other best-practices for defining dependencies at http://getcomposer.org.
Install source from GitHub
The pili-sdk-php
requires PHP v5.3+
. Download the PHP library from Github, and require in your script like so:
To install the source code:
And include it in your scripts:
Install source from zip/tarball
Alternatively, you can fetch a tarball or zipball:
And include it in your scripts:
Usage
Configuration
Hub
Instantiate a Pili Hub object
Create a new Stream
Get a Stream
List Streams
Stream
To JSON string
Update a Stream
Disable a Stream
Enable a Stream
Get Stream status
Generate RTMP publish URL
Generate RTMP live play URLs
Generate HLS play live URLs
Generate Http-Flv live play URLs
Get Stream segments
Generate HLS playback URLs
Save Stream as a file
While invoking saveAs()
and snapshot()
, you can get processing state via Qiniu FOP Service using persistentId
.
API: curl -D GET http://api.qiniu.com/status/get/prefop?id={PersistentId}
Doc reference: http://developer.qiniu.com/docs/v6/api/overview/fop/persistent-fop.html#pfop-status
Snapshot Stream
Delete a Stream
History
-
1.5.4
- Use $stream->saveAs in $stream->hlsPlaybackUrls
-
1.5.3
- Update $stream->disable($disabledTill)
-
1.5.2
- Update $stream->rtmpPublishUrl()
- 1.5.1
- Update API
- $hub->listStreams($marker=NULL, $limit=NULL, $title_prefix=NULL, $status=NULL)
- $stream->saveAs($name, $format=NULL, $start=NULL, $end=NULL, $notifyUrl=NULL, $pipeline=NULL)
- $stream->snapshot($name, $format, $time=NULL, $notifyUrl=NULL, $pipeline=NULL)
- $stream->hlsPlaybackUrls($start=-1, $end=-1)
- Update API
- 1.5.0
- Add Credentials and Transport class
- Renamed $client to $hub
- 1.4.0
- Add Stream Create,Get,List
- $hub->createStream()
- $hub->getStream()
- $hub->listStreams()
- Add Stream operations else
- $stream->toJSONString()
- $stream->update()
- $stream->disable()
- $stream->enable()
- $stream->status()
- $stream->segments()
- $stream->rtmpPublishUrl()
- $stream->rtmpLiveUrls()
- $stream->hlsLiveUrls()
- $stream->httpFlvLiveUrls()
- $stream->hlsPlaybackUrls()
- $stream->snapshot()
- $stream->saveAs()
- $stream->delete()
- Add Stream Create,Get,List