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

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

decodelabs/lucid-support
========================

Support Lucid sanitisation in your libraries without the dependencies

v0.6.0(8mo ago)021.5kMITPHPPHP ^8.4CI passing

Since Sep 8Pushed 7mo ago2 watchersCompare

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

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

Lucid Support
=============

[](#lucid-support)

[![PHP from Packagist](https://camo.githubusercontent.com/ad2832078dcc5623d28f2f91c4066d52239ea3570a1039ec32ca444a4356f0cd/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6465636f64656c6162732f6c756369642d737570706f72743f7374796c653d666c6174)](https://packagist.org/packages/decodelabs/lucid-support)[![Latest Version](https://camo.githubusercontent.com/3a6f4730dd4092f170423f7ce22cddb9ee6e8fd0d39a2cfd888ce89faf0b21c3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6465636f64656c6162732f6c756369642d737570706f72742e7376673f7374796c653d666c6174)](https://packagist.org/packages/decodelabs/lucid-support)[![Total Downloads](https://camo.githubusercontent.com/ee5e8b751bb4cf8eece249147655eb52345a4e4e10ee375bc501a7d65d7f33a2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6465636f64656c6162732f6c756369642d737570706f72742e7376673f7374796c653d666c6174)](https://packagist.org/packages/decodelabs/lucid-support)[![GitHub Workflow Status](https://camo.githubusercontent.com/bc51a4f9da60378542b920fb7f29a4eda6b5fdf6a6882cb3d5d4d80c6454d69d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6465636f64656c6162732f6c756369642d737570706f72742f696e746567726174652e796d6c3f6272616e63683d646576656c6f70)](https://github.com/decodelabs/lucid-support/actions/workflows/integrate.yml)[![PHPStan](https://camo.githubusercontent.com/e25c14ce011edabdd0fbd2e10415b41cc5d66ed11ef3e5b7edd074c5bdd35a2d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048505374616e2d656e61626c65642d3434434331312e7376673f6c6f6e6743616368653d74727565267374796c653d666c6174)](https://github.com/phpstan/phpstan)[![License](https://camo.githubusercontent.com/14623cf00196b71481cfc15e63f41d8e062871a5242419718291bf5e1b6017dd/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6465636f64656c6162732f6c756369642d737570706f72743f7374796c653d666c6174)](https://packagist.org/packages/decodelabs/lucid-support)

DEPRECATED
----------

[](#deprecated)

Lucid v0.7 removes the need for this package as constraint dependencies are now provided by the respective individual packages.

This package is no longer required and remains as a historical artefact.

---

### Support Lucid sanitisation in your libraries without the dependencies

[](#support-lucid-sanitisation-in-your-libraries-without-the-dependencies)

Lucid-support is a middleware package that allows third party libraries to implement the necessary interfaces and provide custom sanitiser and validator functionality to Lucid without dragging in the full dependency tree of the main library.

---

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

[](#installation)

Install the library via composer:

```
composer require decodelabs/lucid-support
```

Usage
-----

[](#usage)

[Lucid](https://github.com/decodelabs/lucid) provides interfaces and traits to implement providing input sanitisation from your own value container objects.

The main library however has a substantial dependency list which may not be desirable when deploying the Lucid Provider interfaces in your own libraries.

Instead, those interfaces have been sectioned off in this package with a `class_exists()` check to ensure that Lucid is available at runtime.

If you want to provide Lucid's sanitisation interface in a library, you only need to require *this* package, and implement either `DirectContextProvider` (for passing the value directly to the methods), `MultiContextProvider` (for dictionaries and maps) or `SingleContextProvider` (for single-value objects).

For example:

```
namespace My\Library;

use DecodeLabs\Lucid\Provider\SingleContext;
use DecodeLabs\Lucid\Provider\SingleContextTrait;

class MyClass implements SingleContext {

    use SingleContextTrait;

    protected mixed $value;

    public function __construct(mixed $value) {
        $this->value = $value;
    }

    /**
     * This method provides the value to all other
     * sanitisation methods in the interface
     */
    public function getValue(): mixed {
        return $this->value;
    }
}
```

Licensing
---------

[](#licensing)

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

###  Health Score

42

—

FairBetter than 89% of packages

Maintenance64

Regular maintenance activity

Popularity21

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity62

Established project with proven stability

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

Recently: every ~46 days

Total

13

Last Release

261d ago

PHP version history (3 changes)v0.1.0PHP ^8.0

v0.4.0PHP ^8.1

v0.5.0PHP ^8.4

### 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 (76 commits)")

---

Tags

phpsanitizationvalidationvalidationinputsupportsanitisation

### Embed Badge

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

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

###  Alternatives

[nette/utils

🛠 Nette Utils: lightweight utilities for string &amp; array manipulation, image handling, safe JSON encoding/decoding, validation, slug or strong password generating etc.

2.1k394.3M1.5k](/packages/nette-utils)[arcanedev/support

ARCANEDEV Support Helpers

1888.2M78](/packages/arcanedev-support)[coderello/laravel-nova-lang

Language support for Laravel Nova.

4251.2M2](/packages/coderello-laravel-nova-lang)[m1/env

Env is a lightweight library bringing .env file parser compatibility to PHP. In short - it enables you to read .env files with PHP.

6412.0M21](/packages/m1-env)[kartik-v/yii2-editable

An enhanced editable widget for Yii 2.0 that allows easy editing of displayed data with numerous configuration possibilities.

1163.2M59](/packages/kartik-v-yii2-editable)[cartalyst/support

Support helpers.

762.8M14](/packages/cartalyst-support)

PHPackages © 2026

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