piccoli-occhi/tv-fr-api-php
Composer 安装命令:
composer require piccoli-occhi/tv-fr-api-php
包简介
Lib to use the tv-fr API based on xml-tv-fr
README 文档
README
API for French TV channels and programs based on racacax/XML-TV-Fr
Installation & Usage
Requirements
PHP 8.1 and later.
Composer
composer require piccoli-occhi/tv-fr-api-php
Manual Installation
Download the files and include autoload.php:
<?php require_once('/path/to/piccoli-occhi/tv-fr-api-php/vendor/autoload.php');
Getting Started
Please follow the installation procedure and then run the following:
<?php require_once(__DIR__ . '/vendor/autoload.php'); $apiInstance = new PiccoliOcchi\TvFrApi\Api\ChannelsApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client() ); $id = 'id_example'; // string | Channel UUID or xmlId $day = 20/05/2026; // string | DD/MM/YYYY (Europe/Paris) try { $result = $apiInstance->getChannelDetails($id, $day); print_r($result); } catch (Exception $e) { echo 'Exception when calling ChannelsApi->getChannelDetails: ', $e->getMessage(), PHP_EOL; }
API Endpoints
All URIs are relative to https://tv-api.miceli.click
| Class | Method | HTTP request | Description |
|---|---|---|---|
| ChannelsApi | getChannelDetails | GET /api/channel/{id} | Get a channel with its current and daily programs |
| ChannelsApi | getChannels | GET /api/channels | List channels |
| ChannelsApi | getTntChannels | GET /api/channels/tnt | List TNT free channels in broadcast order |
| ChannelsApi | searchChannels | GET /api/channels/search | Search channels by name |
| ProgramsApi | getCurrentPrograms | GET /api/programs/now | List currently airing programs |
| ProgramsApi | getProgram | GET /api/program/{id} | Get a program by id |
| ProgramsApi | getProgramsByDay | GET /api/programs/{day} | List programs for a specific day |
| SearXNGApi | syncPosters | GET /api/searxng/sync | Sync poster images from SearXNG for programs without poster |
| StatusApi | status | GET /api/status | Health check |
| TMDBApi | handleNewPrograms | GET /api/tmdb/init | Initialize TMDB details for all programs |
| TMDBApi | syncProgramScores | GET /api/tmdb/sync | Sync TMDB scores for current programs |
| XmlTvApi | startJob | GET /api/xml-tv/run | Start cront to download new xml and update database |
Models
- ChannelDetailsResponse
- ChannelSummary
- ChannelWithCurrent
- ChannelWithCurrentAndUrls
- PaginatedChannelsResponse
- PaginatedProgramsResponse
- ProgramDetails
- ProgramSummary
- ProgramWithChannel
- StatusResponse
Authorization
Endpoints do not require authorization.
Author
About this package
This PHP package is automatically generated by the OpenAPI Generator project:
- API version:
1.0- Generator version:
7.24.0-SNAPSHOT
- Generator version:
- Build package:
org.openapitools.codegen.languages.PhpClientCodegen
统计信息
- 总下载量: 1
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: unlicense
- 更新时间: 2026-06-21