PHPackages                             gisostallenberg/file-serving - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [File &amp; Storage](/categories/file-storage)
4. /
5. gisostallenberg/file-serving

ActiveLibrary[File &amp; Storage](/categories/file-storage)

gisostallenberg/file-serving
============================

Serve files to the browser that are not available directly

1.3.0(3y ago)218.2k4[2 issues](https://github.com/gisostallenberg/file-serving/issues)MITPHPPHP ^7.4 | ^8.0

Since Mar 3Pushed 3y ago2 watchersCompare

[ Source](https://github.com/gisostallenberg/file-serving)[ Packagist](https://packagist.org/packages/gisostallenberg/file-serving)[ RSS](/packages/gisostallenberg-file-serving/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (8)Dependencies (2)Versions (9)Used By (0)

file-serving
============

[](#file-serving)

Serve files to the browser that are not available directly

Installation
------------

[](#installation)

```
composer require gisostallenberg/file-serving
```

Usage example
-------------

[](#usage-example)

Add in serve-it/.htaccess

```
RewriteRule .*  file-serving.php [QSA,L]
```

file-serving.php content

```
