Download the PHP package gonetone/hinet-hichannel-taiwan-radio without Composer

On this page you can find all versions of the php package gonetone/hinet-hichannel-taiwan-radio. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package hinet-hichannel-taiwan-radio

HiNet hichannel 台灣電台 (PHP 套件)

取得 HiNet hichannel 台灣電台的 m3u8 串流網址、節目表和其他資訊!

Node.js 版本:https://github.com/GoneToneStudio/node-hinet-hichannel-taiwan-radio

注意

問題

如果發現任何 BUG,請在此回報:https://github.com/GoneToneStudio/php-hinet-hichannel-taiwan-radio/issues

要求

安裝

使用 Composer 來安裝 HiNet hichannel 台灣電台 (PHP 套件)。

composer require gonetone/hinet-hichannel-taiwan-radio

取得 Hichannel 頻道名稱方法

  1. 前往 HiNet hichannel 網站
  2. 點選您想要聽的電台並確認可以播放
  3. 複製完整頻道名稱,使用時名稱要完全一樣 (如果不能直接複製可以利用 F12,或者就乖乖用打的XDD)

使用方法

使用 HiNetHichannel 物件

取得 m3u8 串流網址

取得頻道名稱

取得頻道 ID

取得頻道描述

取得頻道區域

取得頻道類型

取得頻道圖片網址

取得頻道節目表

取得頻道目前節目名稱

範例

完整範例

網頁播放電台範例

請看 examples/webpage/play_radio.php 。

代理 (Proxy)

如果運行此程式的伺服器不在台灣,請設定台灣的 Proxy 伺服器,否則取得的串流網址會驗證失敗 (HTTP 403 Forbidden),但如果播放端 IP 和用來取得 m3u8 串流網址的伺服器 IP 不同一樣會被阻擋就是了,可以嘗試在伺服端處理好在串流給播放端,就二次串流。

補充

如果需要取得新資料,必須再次調用 $hichannel->loadApi() 才會取得最新資料。

License

MIT


All versions of hinet-hichannel-taiwan-radio with dependencies

PHP Build Version
Package Version
Requires php Version >=7.2
chrisyue/php-m3u8 Version ^3.4
guzzlehttp/guzzle Version ^7.2
ext-json Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package gonetone/hinet-hichannel-taiwan-radio contains the following files

Loading the files please wait ....