PHPackages                             deplink/constraints - 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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. deplink/constraints

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

deplink/constraints
===================

Extends JSON format with custom keys containing additional constraints.

v1.0.1(8y ago)0408MITPHPPHP ^5.6 || ^7.0

Since Jan 13Pushed 8y ago1 watchersCompare

[ Source](https://github.com/deplink/constraints)[ Packagist](https://packagist.org/packages/deplink/constraints)[ RSS](/packages/deplink-constraints/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (1)Dependencies (2)Versions (3)Used By (0)

Extends JSON format with custom keys containing additional data (called constraints). Purpose of this library is to change JSON value depending on the user context (e.g. getting scripts to execute when we're on x86 or x64 architecture).

See [documentation](https://deplink.org/docs/guide/constraints#additional-constraints) and [provided tests](tests/JsonTest.php) for more information.

[![Travis CI Build Status](https://camo.githubusercontent.com/081b884ccd25414a2f95ed82e5bed33c6e3eb9d00cdab7cadf2e30dac4d3092d/68747470733a2f2f7472617669732d63692e6f72672f6465706c696e6b2f636f6e73747261696e74732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/deplink/constraints)

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

[](#contributing)

Thank you for considering contributing! If you would like to fix a bug or propose a new feature, you can submit a Pull Request.

License
-------

[](#license)

Code licensed under the [MIT License](https://opensource.org/licenses/MIT).

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

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

Total

2

Last Release

3078d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/143e31568d2a8cef787b416fd2b5f10b78d28cb141ffe049c197d7fb31dc911c?d=identicon)[mleczek](/maintainers/mleczek)

---

Top Contributors

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

---

Tags

jsonContextconstraints

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/deplink-constraints/health.svg)

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

###  Alternatives

[justinrainbow/json-schema

A library to validate a json schema.

3.6k328.4M741](/packages/justinrainbow-json-schema)[mtdowling/jmespath.php

Declaratively specify how to extract elements from a JSON document

2.0k493.5M159](/packages/mtdowling-jmespathphp)[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.6k38.2k](/packages/matomo-matomo)[jms/serializer

Library for (de-)serializing data of any complexity; supports XML, and JSON.

2.3k139.8M907](/packages/jms-serializer)[jms/serializer-bundle

Allows you to easily serialize, and deserialize data of any complexity

1.8k91.4M664](/packages/jms-serializer-bundle)[colinodell/json5

UTF-8 compatible JSON5 parser for PHP

30524.1M52](/packages/colinodell-json5)

PHPackages © 2026

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