mediashare/show-content

Detect file type & generate html view for web interface user-friendly. (Image/Video/Audio/Text/Markdown)

Maintainers

Package info

github.com/Mediashare/ShowContent

Language:JavaScript

pkg:composer/mediashare/show-content

Statistics

Installs: 411

Dependents: 0

Suggesters: 0

Stars: 1

Open Issues: 1

1.2.4 2020-05-31 14:50 UTC

README

Detect file type & generate html view for web interface user-friendly.

File Types Supported

  • Image
  • Video
  • Audio
  • Text
  • Markdown

Installation

composer require mediashare/show-content

Usages

<?php
include 'vendor/autoload.php';
use Mediashare\ShowContent\ShowContent;

$file = "files/image.png";
$showContent = new ShowContent($file);
$showContent->show();

$file = "files/video.webm";
$showContent = new ShowContent($file);
$showContent->show();

$file = "files/audio.mp3";
$showContent = new ShowContent($file);
$showContent->show();

$file = "files/text.txt";
$showContent = new ShowContent($file);
$showContent->show();

$file = "files/text.md";
$showContent = new ShowContent($file);
$showContent->show();