PHPackages                             yakiv-khorunzhyi/value-type - 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. yakiv-khorunzhyi/value-type

ActiveLibrary

yakiv-khorunzhyi/value-type
===========================

Scalar type as object.

10PHP

Since Aug 6Pushed 5y ago1 watchersCompare

[ Source](https://github.com/yakiv-khorunzhyi/scalar-type)[ Packagist](https://packagist.org/packages/yakiv-khorunzhyi/value-type)[ RSS](/packages/yakiv-khorunzhyi-value-type/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

Scalar Type
===========

[](#scalar-type)

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

[](#installation)

Install the latest version with:

```
$ composer require yakiv-khorunzhyi/scalar-type

```

Examples
--------

[](#examples)

```
$address = new Core\ScalarType('Country,city,street', Core\Types::STRING);

$address->setFormatRule(function ($val) {
    return explode(',', $val);
});

var_dump($address->getFormattedValue());
var_dump($address->getValue());
var_dump($address->getType());

/*
1) array(3) {
  [0]=>
  string(7) "Country"
  [1]=>
  string(4) "city"
  [2]=>
  string(6) "street"
}

2) string(19) "Country,city,street"

3) string(6) "string"
*/

```

License
-------

[](#license)

MIT license.

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity32

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/71c58702aac9fe122db6308a79ab31f3145bb934d041d4c1c88e17f945a1b40f?d=identicon)[yakiv-khorunzhyi](/maintainers/yakiv-khorunzhyi)

---

Top Contributors

[![yakiv-khorunzhyi](https://avatars.githubusercontent.com/u/63973781?v=4)](https://github.com/yakiv-khorunzhyi "yakiv-khorunzhyi (5 commits)")

### Embed Badge

![Health badge](/badges/yakiv-khorunzhyi-value-type/health.svg)

```
[![Health](https://phpackages.com/badges/yakiv-khorunzhyi-value-type/health.svg)](https://phpackages.com/packages/yakiv-khorunzhyi-value-type)
```

PHPackages © 2026

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