PHPackages                             lenra/app - 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. [DevOps &amp; Deployment](/categories/devops)
4. /
5. lenra/app

ActiveLibrary[DevOps &amp; Deployment](/categories/devops)

lenra/app
=========

Lenra's app server lib

v1.0.2(2y ago)046[2 issues](https://github.com/lenra-io/app-lib-php/issues)[2 PRs](https://github.com/lenra-io/app-lib-php/pulls)MITPHPCI passing

Since Nov 29Pushed 1y ago1 watchersCompare

[ Source](https://github.com/lenra-io/app-lib-php)[ Packagist](https://packagist.org/packages/lenra/app)[ RSS](/packages/lenra-app/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (4)Versions (14)Used By (0)

[![Contributors](https://camo.githubusercontent.com/186700a429d92f53bc66b4cd7ec38a7e1c0060640728b0488841dccfd169dbd3/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f636f6e7472696275746f72732f6c656e72612d696f2f6170702d6c69622d7068702e7376673f7374796c653d666f722d7468652d6261646765)](https://github.com/lenra-io/app-lib-php/graphs/contributors)[![Forks](https://camo.githubusercontent.com/bc66400721142dd720d3a4fcb418f11f9a73863f1a684603a36959d57ef38c96/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f666f726b732f6c656e72612d696f2f6170702d6c69622d7068702e7376673f7374796c653d666f722d7468652d6261646765)](https://github.com/lenra-io/app-lib-php/network/members)[![Stargazers](https://camo.githubusercontent.com/f28134dee7fa6ada68bc8990e0bb29e0e3dc7001c2bf3a7a6c1f723e7379d373/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f6c656e72612d696f2f6170702d6c69622d7068702e7376673f7374796c653d666f722d7468652d6261646765)](https://github.com/lenra-io/app-lib-php/stargazers)[![Issues](https://camo.githubusercontent.com/2a8792d361a293be5b2ee7a97d852023d811346664dece3a118819fbdb2f8ba9/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f6c656e72612d696f2f6170702d6c69622d7068702e7376673f7374796c653d666f722d7468652d6261646765)](https://github.com/lenra-io/app-lib-php/issues)[![MIT License](https://camo.githubusercontent.com/d8ae79c645423b4c161faaa7db6b728714d272078b8ead9beca20f7b4d77426c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6c656e72612d696f2f6170702d6c69622d7068702e7376673f7374796c653d666f722d7468652d6261646765)](https://github.com/lenra-io/app-lib-php/blob/master/LICENSE)

### App Lib for PHP based projects

[](#app-lib-for-php-based-projects)

 This lib integrates all the elements the app needs in order to only keep the views, listeners and resources in the app project.

 [Report Bug](https://github.com/lenra-io/app-lib-php/issues) · [Request Feature](https://github.com/lenra-io/app-lib-php/issues)

Usage
-----

[](#usage)

To incorporate it into your Lenra app project, simply run the following command:

```
composer require lenra/app
```

### Lenra API calls

[](#lenra-api-calls)

To call a Lenra API from a listener, use the `Lenra\App\Api` instance provided in the .

You can then create a document using the data API with the following code:

```
class CustomType extends \Lenra\App\Data {
    public string $value;
    public function __construct(string $value = null) {
        $this->value = $value;
    }
}

$myDoc = $request->api->data()->coll(CustomType::class)->createDoc(new CustomType("Hello world"))->wait();
```

([back to top](#top))

Contributing
------------

[](#contributing)

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are **greatly appreciated**.

If you have a suggestion that would make this better, please open an issue with the tag "enhancement". Don't forget to give the project a star if you liked it! Thanks again!

### Generate components classes

[](#generate-components-classes)

A part of this lib is generated from the [Lenra API](https://github.com/lenra-io/api). To generate the classes, run the following commands:

```
# Load API
wget https://github.com/lenra-io/api/releases/latest/download/load-api.sh -O - -q | bash
# generate Models
php vendor/bin/jane generate
# generate builder classes
php script/generate-classes.php
```

### Run unit tests

[](#run-unit-tests)

```
./vendor/bin/phpunit test
```

([back to top](#top))

License
-------

[](#license)

Distributed under the **MIT** License. See [LICENSE](./LICENSE) for more information.

([back to top](#top))

Contact
-------

[](#contact)

Lenra - [@lenra\_dev](https://twitter.com/lenra_dev) -

Project Link:

([back to top](#top))

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance35

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

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

11

Last Release

895d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/97eb151b5185af8a1e613558d9e3c4d271bb2834589e4e265cef11947022750b?d=identicon)[taorepoara](/maintainers/taorepoara)

---

Top Contributors

[![taorepoara](https://avatars.githubusercontent.com/u/8969556?v=4)](https://github.com/taorepoara "taorepoara (51 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (4 commits)")

---

Tags

serverapplenra

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/lenra-app/health.svg)

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

###  Alternatives

[pragmarx/health

Laravel Server &amp; App Health Monitor and Notifier

2.0k1.0M2](/packages/pragmarx-health)[spatie/laravel-webhook-server

Send webhooks in Laravel apps

1.1k8.8M22](/packages/spatie-laravel-webhook-server)[felixfbecker/language-server-protocol

PHP classes for the Language Server Protocol

22476.7M6](/packages/felixfbecker-language-server-protocol)[clue/socket-raw

Simple and lightweight OOP wrapper for PHP's low-level sockets extension (ext-sockets).

35111.1M48](/packages/clue-socket-raw)[php-mcp/server

PHP SDK for building Model Context Protocol (MCP) servers - Create MCP tools, resources, and prompts

828280.5k25](/packages/php-mcp-server)[laminas/laminas-server

Create Reflection-based RPC servers

2423.1M23](/packages/laminas-laminas-server)

PHPackages © 2026

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