PHPackages                             coercive/fileserve - 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. coercive/fileserve

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

coercive/fileserve
==================

Coercive FileServe Utility

2.0.5(2y ago)01.4k3MITPHPPHP &gt;=7

Since Aug 21Pushed 2y ago1 watchersCompare

[ Source](https://github.com/Coercive/FileServe)[ Packagist](https://packagist.org/packages/coercive/fileserve)[ Docs](http://coercive.fr)[ RSS](/packages/coercive-fileserve/feed)WikiDiscussions master Synced today

READMEChangelog (7)Dependencies (1)Versions (8)Used By (0)

Coercive FileServe Utility
==========================

[](#coercive-fileserve-utility)

PHP Serve File with header.

Get
---

[](#get)

```
composer require coercive/fileserve

```

Usage
-----

[](#usage)

V1
--

[](#v1)

```
use Coercive\Utility\FileServe;

# Serve file
FileServe::output('/path/file.extension');
```

V2
--

[](#v2)

```
use Coercive\Utility\FileServe;

# V2
$serve = new FileServe('/path/file.extension');

# Send range
$serve->range();

# Serve file
$serve->serve();

# Send download
$serve->download();

# Get mime
$string = $serve->mimeType();

# Get filesize
$string = $serve->getSize();
```

Options

```
# Enable / Disable header no cache options
$serve->enableCache()
$serve->disableCache()

# Enable / Disable header content disposition filename for html5 attr :
$serve->enableFilename()
$serve->disableFilename()
```

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~444 days

Recently: every ~393 days

Total

7

Last Release

931d ago

Major Versions

1.0 → 2.0.02019-05-02

PHP version history (3 changes)1.0PHP &gt;=5.0

2.0.0PHP &gt;=7.2

2.0.3PHP &gt;=7

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/20288080?v=4)[Coercive](/maintainers/Coercive)[@Coercive](https://github.com/Coercive)

---

Top Contributors

[![Coercive](https://avatars.githubusercontent.com/u/20288080?v=4)](https://github.com/Coercive "Coercive (13 commits)")

### Embed Badge

![Health badge](/badges/coercive-fileserve/health.svg)

```
[![Health](https://phpackages.com/badges/coercive-fileserve/health.svg)](https://phpackages.com/packages/coercive-fileserve)
```

###  Alternatives

[owainjones74/filament-file-upload-chunked

Filament file uploads with support for chunking

171.7k](/packages/owainjones74-filament-file-upload-chunked)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
