Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dereuromark/media-embed
A PHP library to deal with all those media services around, parsing their URLs and displaying their audios/videos.
https://github.com/dereuromark/media-embed
embed media media-player php video
Last synced: 12 days ago
JSON representation
A PHP library to deal with all those media services around, parsing their URLs and displaying their audios/videos.
- Host: GitHub
- URL: https://github.com/dereuromark/media-embed
- Owner: dereuromark
- License: mit
- Created: 2014-07-20T19:16:50.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2023-12-11T22:12:01.000Z (11 months ago)
- Last Synced: 2024-10-11T06:32:52.300Z (about 1 month ago)
- Topics: embed, media, media-player, php, video
- Language: PHP
- Homepage:
- Size: 356 KB
- Stars: 178
- Watchers: 7
- Forks: 43
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Support: docs/supported.md
Awesome Lists containing this project
README
# MediaEmbed
[![CI](https://github.com/dereuromark/media-embed/workflows/CI/badge.svg)](https://github.com/dereuromark/media-embed/actions?query=workflow%3ACI+branch%3Amaster)
[![PHPStan](https://img.shields.io/badge/PHPStan-level%208-brightgreen.svg?style=flat)](https://phpstan.org/)
[![Minimum PHP Version](https://img.shields.io/badge/php-%3E%3D%207.4-8892BF.svg)](https://php.net/)
[![License](https://poser.pugx.org/dereuromark/media-embed/license.svg)](LICENSE)
[![Latest Stable Version](https://poser.pugx.org/dereuromark/media-embed/v/stable.svg)](https://packagist.org/packages/dereuromark/media-embed)
[![Total Downloads](https://poser.pugx.org/dereuromark/media-embed/d/total.svg)](https://packagist.org/packages/dereuromark/media-embed)
[![Coding Standards](https://img.shields.io/badge/cs-PSR--2--R-yellow.svg)](https://github.com/php-fig-rectified/fig-rectified-standards)A utility library that generates HTML embed tags for audio or video located on a given URL.
It also parses and validates given media URLs.It currently works with [120+ services](docs/supported.md), including the most important ones like
- YouTube
- Dailymotion
- MyVideo
- Vimeo
- Ustreametc. With community driven updates this aims to be a complete and up-to-date service wrapper lib.
It uses iframes if possible, and has a fallback on the embed object if necessary.
## Demo
https://sandbox.dereuromark.de/sandbox/media-embed## Requirements
- [jbroadway/urlify](https://github.com/jbroadway/urlify) for slugging
### Note
Please feel free to join in and help out to further improve or complete it.
There are always some providers changing their URLs/API or some new ones which are not yet completed.## Installation
Run
```bash
composer require dereuromark/media-embed
```
This will get the latest tagged version for you.## Documentation
For detailed documentation see **[/docs](docs/README.md)**.## Credits
Inspired by autoembed.com which already included most of the supported services and laid the foundation of this OOP approach here.
There is also [this](https://github.com/oscarotero/Embed).