divinity76/php-httpreadfile

readfile() with 304 Not Modified and 206 Partial Content support

v1.0.0 2022-10-07 13:25 UTC

This package is not auto-updated.

Last update: 2024-12-28 22:30:44 UTC


README

php readfile() with 304 Not Modified and 206 Partial Content support

installation

the script is a standalone .php file, you can copypaste it, or composer:

composer require 'divinity76/php-httpreadfile'

Usage

<?php
require_once(__DIR__ . '/vendor/autoload.php');
\Divinity76\httpreadfile\httpreadfile(__FILE__);