Download the PHP package gumphp/parse-video without Composer
On this page you can find all versions of the php package gumphp/parse-video. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package parse-video
GumPHP Parse Video
A PHP library to parse video information from various Chinese social media platforms. This is the PHP equivalent of the popular Python parse-video-py library.
Features
- Parse video information from 20+ Chinese social media platforms
- Extract direct video URLs, thumbnails, titles, and author information
- Support for both video and image album parsing where applicable
- Modern PHP 8.1+ with strict typing
- PSR-4 autoloading and composer support
- Built with Guzzle HTTP client for reliable requests
Supported Platforms
- Douyin (抖音) - including image albums and Live Photos
- Kuaishou (快手)
- Weibo (微博) - including image albums
- Bilibili (哔哩哔哩)
- Xiaohongshu (小红书)
- PiPiXia (皮皮虾)
- WeiShi (微视)
- LvZhou (绿洲)
- ZuiYou (最右)
- QuanMin (度小视/原 全民小视频)
- XiGua (西瓜视频)
- LiShiPin (梨视频)
- PiPiGaoXiao (皮皮搞笑)
- HuYa (虎牙)
- AcFun (A站)
- DouPai (逗拍)
- MeiPai (美拍)
- QuanMinKGe (全民K歌)
- SixRoom (六间房)
- XinPianChang (新片场)
- HaoKan (好看视频)
Installation
Requirements
- PHP >= 8.1
- ext-json
- ext-curl
- guzzlehttp/guzzle
Usage
Basic Usage
Check if URL is Supported
Get All Supported Sources
Data Structures
VideoInfo
VideoAuthor
ImgInfo (for Image Albums)
Error Handling
The library throws specific exceptions for different error conditions:
Development
Running Tests
Static Analysis
Architecture
The library follows a modular architecture similar to the Python version:
- VideoParser - Main service class for parsing URLs
- BaseParser - Abstract base class for platform-specific parsers
- Platform Parsers - Individual parser classes for each platform
- Models - Data classes for video information, author info, etc.
- Enums - Enumerations for video sources
- Exceptions - Custom exception classes
Adding New Platforms
- Create a new parser class extending
BaseParser - Add the source to the
VideoSourceenum - Update the parser mapping in
VideoParser.php - Implement the required
parseShareUrl()andparseVideoId()methods
Example:
License
MIT License
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Acknowledgments
This library is heavily inspired by and aims to provide PHP equivalent functionality to the parse-video-py Python library.
All versions of parse-video with dependencies
PHP Build Version
Package Version
The package gumphp/parse-video contains the following files
Loading the files please wait ...