PHP code example of mediashare / show-content
1. Go to this page and download the library: Download mediashare/show-content library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
mediashare / show-content example snippets
ediashare\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();