PHPackages                             sflightning/contracts - 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. sflightning/contracts

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

sflightning/contracts
=====================

A set of abstractions for the sflightning project

021PHP

Since May 28Pushed 3y ago1 watchersCompare

[ Source](https://github.com/BaptisteContreras/lightning-contracts)[ Packagist](https://packagist.org/packages/sflightning/contracts)[ RSS](/packages/sflightning-contracts/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Lightning Contracts
===================

[](#lightning-contracts)

A list of interfaces needed by the SfLightning project.

An implementation can be found [here](https://github.com/BaptisteContreras/lightning-lib)Symfony bundle [here](https://github.com/BaptisteContreras/lightning-bundle)

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

[](#installation)

```
 composer require sflightning/contracts

```

### Event

[](#event)

```
    namespace Sflightning\Contracts\Event;

```

All events that can be triggered during the lifecycle of a Sflightning project.

#### Swoole

[](#swoole)

```
    namespace Sflightning\Contracts\Event\Swoole;

```

Swoole lifecycle's events triggered during the lifecycle of a Sflightning project.

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity26

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/29d32f0de7bf0abd199486576ed2251e0b40d1f4312330f74c842a226a244947?d=identicon)[BaptisteContreras](/maintainers/BaptisteContreras)

---

Top Contributors

[![BaptisteContreras](https://avatars.githubusercontent.com/u/38988658?v=4)](https://github.com/BaptisteContreras "BaptisteContreras (6 commits)")

### Embed Badge

![Health badge](/badges/sflightning-contracts/health.svg)

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

PHPackages © 2026

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