PHPackages                             ppp/libmodule - 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. ppp/libmodule

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

ppp/libmodule
=============

Lib that helps the creation of PHP modules for the PPP

02.0k1[1 issues](https://github.com/ProjetPP/PPP-LibModule-PHP/issues)PHP

Since Mar 10Pushed 10y ago6 watchersCompare

[ Source](https://github.com/ProjetPP/PPP-LibModule-PHP)[ Packagist](https://packagist.org/packages/ppp/libmodule)[ RSS](/packages/ppp-libmodule/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Basic lib to write PPP modules in PHP
=====================================

[](#basic-lib-to-write-ppp-modules-in-php)

[![Build Status](https://camo.githubusercontent.com/faee67f150e27e16ad10e173a603dfca344499bc30f41cbd0e919a1e9532c1a3/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f50726f6a657450502f5050502d4c69624d6f64756c652d5048502f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/ProjetPP/PPP-LibModule-PHP/build-status/master)[![Code Coverage](https://camo.githubusercontent.com/d895485ae10f1d688fbe6304286a767fb35a641c9d167c021e1fc66573f58b2b/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f50726f6a657450502f5050502d4c69624d6f64756c652d5048502f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/ProjetPP/PPP-LibModule-PHP/?branch=master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/b15f4f7890ea3b6bbbd555ede7e94962ad5ae88bf1694e0cbc44ee5201bba55c/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f50726f6a657450502f5050502d4c69624d6f64756c652d5048502f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/ProjetPP/PPP-LibModule-PHP/?branch=master)

On [Packagist](https://packagist.org/packages/ppp/libmodule): [![Latest Stable Version](https://camo.githubusercontent.com/7d331a35f7b9548405aef5682aa4de2ca9662f06366c2e0a5fcc4087030952f6/68747470733a2f2f706f7365722e707567782e6f72672f7070702f6c69626d6f64756c652f76657273696f6e2e706e67)](https://packagist.org/packages/ppp/libmodule)[![Download count](https://camo.githubusercontent.com/0946b1836e5446ded5fc3f5dd71bf1ce01a4826274114b96392a9e81e2843098/68747470733a2f2f706f7365722e707567782e6f72672f7070702f6c69626d6f64756c652f642f746f74616c2e706e67)](https://packagist.org/packages/ppp/libmodule)

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

[](#installation)

Use one of the below methods:

1 - Use composer to install the library and all its dependencies using the master branch:

```
composer require "ppp/libmodule":"dev-master"

```

2 - Create a composer.json file that just defines a dependency on version 0.2 of this package, and run 'composer install' in the directory:

```
{
    "require": {
        "ppp/ppp/libmodule"": "~0.2.0"
    }
}

```

Example
-------

[](#example)

Here is a small usage example:

```
// Load everything
require_once(__DIR__ . "/vendor/autoload.php");

// A very simple class implementing RequestHandler interface
class MyRequestHandler implements PPP\Module\RequestHandler {
	public function buildResponse(PPP\Module\DataModel\ModuleRequest $request) {
		return new PPP\Module\DataModel\ModuleResponse(
			$request->getLanguageCode(),
			new PPP\DataModel\MissingNode(),
			0
		);
	}
}

// Lets run the entry point!
$entryPoint = new PPP\Module\ModuleEntryPoint(new MyRequestHandler());
$entryPoint->exec();
```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 96.2% 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.

### Community

Maintainers

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

---

Top Contributors

[![Tpt](https://avatars.githubusercontent.com/u/458123?v=4)](https://github.com/Tpt "Tpt (50 commits)")[![progval](https://avatars.githubusercontent.com/u/406946?v=4)](https://github.com/progval "progval (2 commits)")

### Embed Badge

![Health badge](/badges/ppp-libmodule/health.svg)

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

###  Alternatives

[woodsandwalker/laravel-countries

Laravel Countries is a bundle for Laravel providing ISO 3166\_2 codes for all countries along with a country model, cast and validation rule.

109.5k](/packages/woodsandwalker-laravel-countries)

PHPackages © 2026

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