divinity76/php-httpreadfile

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

Installs: 3

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/divinity76/php-httpreadfile

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

This package is not auto-updated.

Last update: 2025-10-05 02:19:33 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__);