PHP code example of dlg-projects / streamfile

1. Go to this page and download the library: Download dlg-projects/streamfile 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/ */

    

dlg-projects / streamfile example snippets


use DlgProjects\StreamFile;

$stream = new StreamFile('myFolder/myFile.mp4');
$stream->startStream();