PHPackages                             ppelisset/fileno - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. ppelisset/fileno

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

ppelisset/fileno
================

Get a file descriptor from a stream

v0.2.0(3y ago)670312MITCPHP &gt;=8.0

Since Jun 26Pushed 2y ago1 watchersCompare

[ Source](https://github.com/ppelisset/php-fileno)[ Packagist](https://packagist.org/packages/ppelisset/fileno)[ RSS](/packages/ppelisset-fileno/feed)WikiDiscussions main Synced today

READMEChangelog (2)Dependencies (1)Versions (3)Used By (2)

php-fileno
==========

[](#php-fileno)

This package append function `fileno` to retrieve the file descriptor of a stream.

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

[](#installation)

php-fileno require PHP8 and php-ffi enabled. To install this package, use composer to require package `ppelisset/fileno`.

Documentation
-------------

[](#documentation)

fileno - Get a file descriptor from a stream

```
fileno(resource $stream): ?int

```

Return the file descriptor of the **stream** or null if **stream** is not a stream with a file descriptor (not a stream, network stream...)

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 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 ~14 days

Total

2

Last Release

1454d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/25f558796d2722ade5f9ea0e5d79f9f2885bd63c348e657de59152093b9ad297?d=identicon)[ppelisset](/maintainers/ppelisset)

---

Top Contributors

[![ppelisset](https://avatars.githubusercontent.com/u/954371?v=4)](https://github.com/ppelisset "ppelisset (7 commits)")

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/ppelisset-fileno/health.svg)

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

###  Alternatives

[donatj/rewrite-generator

Server Rewrite Generator

1263.9k](/packages/donatj-rewrite-generator)

PHPackages © 2026

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