PHPackages                             decodelabs/gadgets - 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. decodelabs/gadgets

Abandoned → [decodelabs/lucid](/?search=decodelabs%2Flucid)ArchivedLibrary

decodelabs/gadgets
==================

Useful tools for building PHP libraries

v0.10.0(3y ago)09.6k↓100%1MITPHPPHP ^8.0

Since Sep 10Pushed 3y ago1 watchersCompare

[ Source](https://github.com/decodelabs/gadgets)[ Packagist](https://packagist.org/packages/decodelabs/gadgets)[ RSS](/packages/decodelabs-gadgets/feed)WikiDiscussions develop Synced 1mo ago

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

Gadgets
=======

[](#gadgets)

[![PHP from Packagist](https://camo.githubusercontent.com/0a45c868661824860e7082fca82079fd43d165e4897a30edaea6cc3a9d73612c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6465636f64656c6162732f676164676574733f7374796c653d666c6174)](https://packagist.org/packages/decodelabs/gadgets)[![Latest Version](https://camo.githubusercontent.com/1e793bf4ee1854336f06b18ae1c0eb6a602d1e69e748599fc1e2921fcc0f3788/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6465636f64656c6162732f676164676574732e7376673f7374796c653d666c6174)](https://packagist.org/packages/decodelabs/gadgets)[![Total Downloads](https://camo.githubusercontent.com/a13a8f1a9d825a115b4581f4fdd4450bca6908b90131ca43299e371e08bdfed2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6465636f64656c6162732f676164676574732e7376673f7374796c653d666c6174)](https://packagist.org/packages/decodelabs/gadgets)[![GitHub Workflow Status](https://camo.githubusercontent.com/4a4c36c14f3051329f15736d7c676dbcd7f6b602a521e2ca06735d66d0c2fa72/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f6465636f64656c6162732f676164676574732f496e74656772617465)](https://github.com/decodelabs/gadgets/actions/workflows/integrate.yml)[![PHPStan](https://camo.githubusercontent.com/e25c14ce011edabdd0fbd2e10415b41cc5d66ed11ef3e5b7edd074c5bdd35a2d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048505374616e2d656e61626c65642d3434434331312e7376673f6c6f6e6743616368653d74727565267374796c653d666c6174)](https://github.com/phpstan/phpstan)[![License](https://camo.githubusercontent.com/7057b30ff926aff2bac94467317ea44284111a51664faff03e252d82e506d25f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6465636f64656c6162732f676164676574733f7374796c653d666c6174)](https://packagist.org/packages/decodelabs/gadgets)

**This package has been deprecated in favour of other DecodeLabs packages - see below**

### Method chaining

[](#method-chaining)

The `Then` interface for structured method chaining has been moved to its own project, [Fluidity](https://github.com/decodelabs/fluidity/).

### Constraints

[](#constraints)

The `Constraints` interfaces have been moved to their own project, [Tightrope](https://github.com/decodelabs/tightrope/).

### Sanitizer

[](#sanitizer)

The `Sanitizer` functionality has been superseded by [Lucid](https://github.com/decodelabs/lucid/).

Licensing
---------

[](#licensing)

Gadgets is licensed under the MIT License. See [LICENSE](./LICENSE) for the full license text.

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 98.3% 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 ~83 days

Recently: every ~121 days

Total

14

Last Release

1347d ago

PHP version history (3 changes)v0.5.0PHP ^7.2

v0.7.0PHP ^7.2|^8.0

v0.9.0PHP ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/8a241d64d12b3b5ee94197862ec1ec30b82ed2efa34a0cd7f4c3565a021daddd?d=identicon)[betterthanclay](/maintainers/betterthanclay)

---

Top Contributors

[![betterthanclay](https://avatars.githubusercontent.com/u/1273586?v=4)](https://github.com/betterthanclay "betterthanclay (114 commits)")[![szepeviktor](https://avatars.githubusercontent.com/u/952007?v=4)](https://github.com/szepeviktor "szepeviktor (2 commits)")

---

Tags

librarytools

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StyleECS

Type Coverage Yes

### Embed Badge

![Health badge](/badges/decodelabs-gadgets/health.svg)

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

###  Alternatives

[cse/helpers-session

The helpers allows you to easily manage session data. START, SET, GET DELETE, HAS method session - all this is available in this library.

102.6k3](/packages/cse-helpers-session)

PHPackages © 2026

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