PHPackages                             azenox/php-string2chaining - 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. azenox/php-string2chaining

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

azenox/php-string2chaining
==========================

Convert string containing chains into object chains

1.0.0(4y ago)05MITPHPPHP ^7.4|^8.0

Since Apr 23Pushed 4y ago1 watchersCompare

[ Source](https://github.com/AzenoX/php-string2chaining)[ Packagist](https://packagist.org/packages/azenox/php-string2chaining)[ Docs](https://github.com/AzenoX/php-string2chaining)[ RSS](/packages/azenox-php-string2chaining/feed)WikiDiscussions master Synced today

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

php-string2chaining
===================

[](#php-string2chaining)

Convert string containing chains into object chains

[![Packagist Version](https://camo.githubusercontent.com/e64d0835622444427f4d8b5064353cc076f8235fef11ac036ac64d516ba8ae81/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f417a656e6f582f7068702d737472696e6732636861696e696e673f6c6162656c3d56657273696f6e267374796c653d666f722d7468652d6261646765)](https://camo.githubusercontent.com/e64d0835622444427f4d8b5064353cc076f8235fef11ac036ac64d516ba8ae81/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f417a656e6f582f7068702d737472696e6732636861696e696e673f6c6162656c3d56657273696f6e267374796c653d666f722d7468652d6261646765)[![Packagist Downloads](https://camo.githubusercontent.com/004f27d53d5aa70f7c89aca6ee05400ae238c4e9e12414552832be55dcf84e40/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f417a656e6f582f7068702d737472696e6732636861696e696e673f7374796c653d666f722d7468652d6261646765)](https://camo.githubusercontent.com/004f27d53d5aa70f7c89aca6ee05400ae238c4e9e12414552832be55dcf84e40/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f417a656e6f582f7068702d737472696e6732636861696e696e673f7374796c653d666f722d7468652d6261646765)[![GitHub](https://camo.githubusercontent.com/b46ef914438f3bf00cbe5507320c1ce4b17862cf86317a5db1ae2e4eb1569b50/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f417a656e6f582f7068702d737472696e6732636861696e696e673f7374796c653d666f722d7468652d6261646765)](https://camo.githubusercontent.com/b46ef914438f3bf00cbe5507320c1ce4b17862cf86317a5db1ae2e4eb1569b50/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f417a656e6f582f7068702d737472696e6732636861696e696e673f7374796c653d666f722d7468652d6261646765)[![GitHub last commit](https://camo.githubusercontent.com/a36def01b811ad2aae1aaa769373afa49746220d66cbf704261cedc450260ea2/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6173742d636f6d6d69742f417a656e6f582f7068702d737472696e6732636861696e696e673f7374796c653d666f722d7468652d6261646765)](https://camo.githubusercontent.com/a36def01b811ad2aae1aaa769373afa49746220d66cbf704261cedc450260ea2/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6173742d636f6d6d69742f417a656e6f582f7068702d737472696e6732636861696e696e673f7374796c653d666f722d7468652d6261646765)[![Codacy coverage](https://camo.githubusercontent.com/63f63076ca4d0a91ac0ca5fd303f11b6b1ad1946fc7b34c6092ab44fd1131155/68747470733a2f2f696d672e736869656c64732e696f2f636f646163792f636f7665726167652f31373830363865626438643134363231396138343865336232343461633630643f7374796c653d666f722d7468652d6261646765)](https://camo.githubusercontent.com/63f63076ca4d0a91ac0ca5fd303f11b6b1ad1946fc7b34c6092ab44fd1131155/68747470733a2f2f696d672e736869656c64732e696f2f636f646163792f636f7665726167652f31373830363865626438643134363231396138343865336232343461633630643f7374796c653d666f722d7468652d6261646765)[![Codacy grade](https://camo.githubusercontent.com/625b5f3209a22ff46e9fe4f08130b5d643c73f3e87120bac210c407419899b0a/68747470733a2f2f696d672e736869656c64732e696f2f636f646163792f67726164652f31373830363865626438643134363231396138343865336232343461633630643f7374796c653d666f722d7468652d6261646765)](https://camo.githubusercontent.com/625b5f3209a22ff46e9fe4f08130b5d643c73f3e87120bac210c407419899b0a/68747470733a2f2f696d672e736869656c64732e696f2f636f646163792f67726164652f31373830363865626438643134363231396138343865336232343461633630643f7374796c653d666f722d7468652d6261646765)[![Bitbucket open issues](https://camo.githubusercontent.com/ddc9f2cc97b4a3e9eb4d8ebf5af24dbd66e2b71bd32078a19adcaed429dc51e8/68747470733a2f2f696d672e736869656c64732e696f2f6269746275636b65742f6973737565732f417a656e6f582f7068702d737472696e6732636861696e696e673f7374796c653d666f722d7468652d6261646765)](https://camo.githubusercontent.com/ddc9f2cc97b4a3e9eb4d8ebf5af24dbd66e2b71bd32078a19adcaed429dc51e8/68747470733a2f2f696d672e736869656c64732e696f2f6269746275636b65742f6973737565732f417a656e6f582f7068702d737472696e6732636861696e696e673f7374796c653d666f722d7468652d6261646765)

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

[](#installation)

Via composer

```
composer require azenox/php-string2chaining
```

Usage
-----

[](#usage)

There is only one method: **parse()**

For example when testing with PHPUnit, we can have something like this:

```
public function setUp(): void
{
    parent::setUp();

    $this->user1 = User::find(1);
    $this->user2 = User::find(2);
}

private function userPayload()
{
    return [
        'test with user1' => [
            'user1',
            'birth_date->format(\'Y-m-d\')',
            '1998-08-22'
        ],
        'test with user2' => [
            'user2',
            'another_date->format(\'Y-m-d\')',
            '1998-03-30'
        ],
    ];
}

/**
 * @test
 * @dataProvider userPayload
 */
public function birth_date_should_be_equals_to_this_date($user, $str, $test)
{
    $obj = $this->{$user};

    $this->assertEquals($test, String2chaining::parse($obj, $str));
}
```

Version
-------

[](#version)

[![Packagist Version](https://camo.githubusercontent.com/e64d0835622444427f4d8b5064353cc076f8235fef11ac036ac64d516ba8ae81/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f417a656e6f582f7068702d737472696e6732636861696e696e673f6c6162656c3d56657273696f6e267374796c653d666f722d7468652d6261646765)](https://camo.githubusercontent.com/e64d0835622444427f4d8b5064353cc076f8235fef11ac036ac64d516ba8ae81/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f417a656e6f582f7068702d737472696e6732636861696e696e673f6c6162656c3d56657273696f6e267374796c653d666f722d7468652d6261646765)

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

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

Unknown

Total

1

Last Release

1531d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/203990263?v=4)[Azenox](/maintainers/Azenox)[@Azenox](https://github.com/Azenox)

---

Top Contributors

[![AlexisHyt](https://avatars.githubusercontent.com/u/13487736?v=4)](https://github.com/AlexisHyt "AlexisHyt (17 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/azenox-php-string2chaining/health.svg)

```
[![Health](https://phpackages.com/badges/azenox-php-string2chaining/health.svg)](https://phpackages.com/packages/azenox-php-string2chaining)
```

###  Alternatives

[liquidweb/htaccess-validator-shell

Shell script for linting and validating Apache2 Htaccess files

1750.1k1](/packages/liquidweb-htaccess-validator-shell)[beste/latlon-geohash

Gustavo Niemeyer's geocoding system

1059.7k](/packages/beste-latlon-geohash)[trendyminds/visor

A simple admin overlay to get to the relevant areas of the Craft CMS control panel

248.2k](/packages/trendyminds-visor)

PHPackages © 2026

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