PHPackages                             gentle/embeddables - 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. gentle/embeddables

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

gentle/embeddables
==================

Small collection of value objects.

0.2.0(5y ago)04.9k11MITPHPPHP ^7.4 || ^8.0CI failing

Since Aug 24Pushed 5y ago1 watchersCompare

[ Source](https://github.com/gentlero/embeddables)[ Packagist](https://packagist.org/packages/gentle/embeddables)[ Docs](http://www.gentle.ro)[ RSS](/packages/gentle-embeddables/feed)WikiDiscussions develop Synced today

READMEChangelogDependencies (2)Versions (4)Used By (1)

Embeddables library
===================

[](#embeddables-library)

[![Latest Version](https://camo.githubusercontent.com/9feb6f26856ec9c1ca88e201ebda93afc17b155fddb893645649d00a9fa6a3ae/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f67656e746c652f656d6265646461626c65732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/gentle/embeddables)[![License](https://camo.githubusercontent.com/942e017bf0672002dd32a857c95d66f28c5900ab541838c6c664442516309c8a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Build Status](https://camo.githubusercontent.com/667e4052b66f269126df8c68c800df69cc1af0b786c730d74aa8cb7d3acc19f3/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f67656e746c65726f2f656d6265646461626c65732f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/gentlero/embeddables)[![Coverage Status](https://camo.githubusercontent.com/40b17a9c052215c87442932f44aa80682eef2db5752c95c4e3a1646896877fef/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f67656e746c65726f2f656d6265646461626c65732e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/gentlero/embeddables/?branch=develop)[![Code quality](https://camo.githubusercontent.com/ebdb170f2cd7f4d87d44d3091bdb310e2ca7ff6aecb1095278f052a9778ba1bf/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f67656e746c65726f2f656d6265646461626c65732e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/gentlero/embeddables/?branch=develop)

Small collection of Value Objects to ease composition.

Install
-------

[](#install)

Via Composer

```
$ composer require gentle/embeddables
```

Usage
-----

[](#usage)

```
use Gentle\Embeddable\Date;
use Gentle\Embeddable\Time;

$date = new Date(
    new Date\Year(2016),
    new Date\Month(12),
    new Date\Day(25)
);
echo (string)$date; // 2016-12-25

$time = new Time(
    new Time\Hour(23),
    new Time\Minute('04'),
    new Time\Second(14)
);

// changing timezone will return a new `Time` object
$time = $time->withTimeZone(new \DateTimeZone('Europe/Monaco'));
echo (string)$time; // 23:04:14
```

Testing
-------

[](#testing)

```
$ composer test
```

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

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security
--------

[](#security)

For any security related issues, please send an email at [alex@gentle.ro](https://keybase.io/vimishor/key.asc) instead of using the issue tracker.

License
-------

[](#license)

Licensed under the MIT License - see the LICENSE file for details.

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity60

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

Total

2

Last Release

1916d ago

PHP version history (2 changes)0.1.0PHP ~5.5|~7.0

0.2.0PHP ^7.4 || ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/0d360d7a6070deb0054128aeabde12eb5fa070481eb42fd747f63c17ccb0b863?d=identicon)[vimishor](/maintainers/vimishor)

---

Top Contributors

[![vimishor](https://avatars.githubusercontent.com/u/477960?v=4)](https://github.com/vimishor "vimishor (23 commits)")

---

Tags

value objectsimmutablecomposition

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/gentle-embeddables/health.svg)

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

###  Alternatives

[league/pipeline

A plug and play pipeline implementation.

1.0k17.2M88](/packages/league-pipeline)[aeon-php/calendar

PHP type safe, immutable calendar library

20810.4M16](/packages/aeon-php-calendar)[qaribou/immutable.php

Immutable, highly-performant collections, well-suited for functional programming and memory-intensive applications.

345148.0k](/packages/qaribou-immutablephp)[innmind/immutable

Immutable PHP primitive wrappers

74228.5k84](/packages/innmind-immutable)[rtlopez/decimal

An object oriented immutable arbitrary-precision arithmetic library for PHP

27274.7k2](/packages/rtlopez-decimal)[dereuromark/cakephp-dto

A CakePHP plugin for generating immutable Data Transfer Objects with full type safety

3099.1k6](/packages/dereuromark-cakephp-dto)

PHPackages © 2026

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