PHPackages                             m3m0r7/pnl - 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. m3m0r7/pnl

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

m3m0r7/pnl
==========

PHP native-library extension manager: FFI runtime SDK plus the pnl/pnlx CLI built from the bundled Rust sources on install.

v0.6.0(1mo ago)821MITRustPHP &gt;=8.3CI passing

Since Jun 9Pushed 4w agoCompare

[ Source](https://github.com/m3m0r7/pnl)[ Packagist](https://packagist.org/packages/m3m0r7/pnl)[ Docs](https://github.com/m3m0r7/pnl)[ RSS](/packages/m3m0r7-pnl/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (10)Dependencies (8)Versions (26)Used By (0)

pnl
===

[](#pnl)

[日本語版](README.ja.md)

**pnl makes it easy to use C libraries from PHP.** It installs library "packages", finds the C library and headers already on your machine, generates PHP wrappers, and exposes everything through the `Pnlx` PHP SDK — think Composer, but for C libraries.

```
pnl init
pnl search 'lib*'    # browse available packages (default repo + your own)
pnl install libc
pnl list 'lib*'      # show what you have installed
```

See the [Quick Start](docs/en/quick-start.md) to call C `printf` from PHP in a minute.

Table of Contents
-----------------

[](#table-of-contents)

- [Documentation](#documentation)
- [License](#license)

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

[](#documentation)

- [Overview](docs/en/overview.md) — What pnl is, how it works, and project status.
- [Quick Start](docs/en/quick-start.md) — Call C `printf` from PHP in a few commands.
- [Installation](docs/en/installation.md) — Requirements and building/installing the binaries.
- [Configuration](docs/en/configuration.md) — Project layout and writing `pnl.json`.
- [Install Sources](docs/en/install-sources.md) — URLs, paths, bare names, archives, and native discovery.
- [Commands](docs/en/commands.md) — `pnl` and `pnlx` command reference.
- [PHP Usage](docs/en/php-usage.md) — Loading extensions and the generated files.
- [Development](docs/en/development.md) — Validation, testing, and the JSON schemas.
- [Conventions](docs/en/conventions.md) — Source-tree naming, coding rules, and the architecture layers.

The official default package repository is ****, which publishes a `repository-index.json` so `pnl search` can browse it without cloning. A repository may also expose short aliases (e.g. `sdl` → `libsdl`), so `pnl install sdl` resolves to the referenced package. The built-in endpoints can be overridden per project — see [Configuration](docs/en/configuration.md).

The generated PHP SDK loads itself through its own autoloader (`@pnlx/autoload.php`), so it runs without a Composer autoloader at runtime.

License
-------

[](#license)

This repository is currently marked as MIT in `composer.json`. The bundled C libraries keep their own upstream licenses; see the package manifests and READMEs at `https://github.com/m3m0r7/pnl-packages`.

###  Health Score

44

—

FairBetter than 90% of packages

Maintenance94

Actively maintained with recent releases

Popularity15

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity49

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

Total

25

Last Release

33d ago

PHP version history (2 changes)v0.1.6PHP &gt;=8.2

v0.2.0PHP &gt;=8.3

### Community

Maintainers

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

---

Top Contributors

[![m3m0r7](https://avatars.githubusercontent.com/u/1282995?v=4)](https://github.com/m3m0r7 "m3m0r7 (59 commits)")

---

Tags

ffiphprust

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/m3m0r7-pnl/health.svg)

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

###  Alternatives

[symfony/runtime

Enables decoupling PHP applications from global state

74298.8M1.1k](/packages/symfony-runtime)[drupal/core-composer-scaffold

A flexible Composer project scaffold builder.

5345.4M570](/packages/drupal-core-composer-scaffold)[drupal/core-project-message

Adds a message after Composer installation.

2124.7M205](/packages/drupal-core-project-message)[sandersander/composer-link

Adds ability to link local packages for development with composer

98457.9k](/packages/sandersander-composer-link)[phpro/grumphp-shim

GrumPHP Phar distribution

294.7M342](/packages/phpro-grumphp-shim)[lullabot/drainpipe

An automated build tool to allow projects to have a set standardized operations scripts.

43785.5k4](/packages/lullabot-drainpipe)

PHPackages © 2026

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