mediashare/show-content

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

Installs: 401

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 2

Forks: 0

Open Issues: 1

Language:JavaScript

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();