Search by

mediashare / show-content

Mediashare-Support

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

Package info

github.com/Mediashare/ShowContent

Language:JavaScript

pkg:composer/mediashare/show-content

Statistics

Installs: 422

Dependents: 0

Suggesters: 0

Stars: 1

Open Issues: 1

1.2.4 2020-05-31 14:50 UTC

This package is auto-updated.

Last update: 2026-09-07 00:32:42 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();