PHPackages                             shish/ffsphp - 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. shish/ffsphp

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

shish/ffsphp
============

A collection of workarounds for stupid PHP things

v1.5.0(2mo ago)742.2k↓45.5%12MITPHPPHP ^8.4CI passing

Since Nov 25Pushed 2mo ago1 watchersCompare

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

READMEChangelog (1)Dependencies (6)Versions (22)Used By (2)

FFS, PHP
========

[](#ffs-php)

Because it's `$CURRENT_YEAR` and I'm still hitting the same PHP issues as years ago...

Features
--------

[](#features)

**PDO**:

Example use:

```
use \FFSPHP\PDO;
$db = new PDO($dsn, $driver_options);
var_dump($db->execute("SELECT * FROM mytable LIMIT :limit", ["limit"=>3])->fetchAll());

```

- Changed PDO constructor so that the MySQL backend accepts username and password as part of the DSN, just like every other backend.
- Added `PDO::execute($query, $parameters)`, so that one can write a templated query without needing to create a single-use prepared statement
- Made `PDOStatement::execute($parameters)` use typed bindings, so that `"LIMIT :foo", ["foo"=>3]` is rendered as `LIMIT 3` instead of `LIMIT '3'`

**Paths**:

```
use \FFSPHP\Paths;

Paths::abspath("./foo");  # /my/dir/foo
Paths::relative_path("out/output.txt", "my/dir/input.txt");  # ../../out/output.txt

```

**VLQ**:

```
use \FFSPHP\VLQ;

VLQ::decode_vlq_array("IAAM");  # [4,0,0,6]
VLQ::encode_vlq_array([4,0,0,6]);  # "IAAM"

```

###  Health Score

59

—

FairBetter than 99% of packages

Maintenance86

Actively maintained with recent releases

Popularity35

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity84

Battle-tested with a long release history

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

Recently: every ~199 days

Total

17

Last Release

66d ago

Major Versions

v0.0.2 → v1.0.02020-09-20

PHP version history (7 changes)v0.0.1PHP &gt;=7.2

v1.0.0PHP ^7.3

v1.0.4PHP ^7.3 | ^8.0

v1.1.0PHP ^8.0

v1.3.1PHP ^8.1

v1.3.3PHP ^8.2

v1.5.0PHP ^8.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/a40f5d114b344f735652e4ccc988a618ef5ee2e85a644abeb7e20e92f4c740d5?d=identicon)[shish](/maintainers/shish)

---

Top Contributors

[![shish](https://avatars.githubusercontent.com/u/40659?v=4)](https://github.com/shish "shish (54 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/shish-ffsphp/health.svg)

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

PHPackages © 2026

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