PHPackages                             vjik/simple-type-caster - 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. vjik/simple-type-caster

ActiveLibrary

vjik/simple-type-caster
=======================

Simple library for value type casting

0.4.5.1(4mo ago)12511BSD-3-ClausePHPPHP 8.1 - 8.5CI passing

Since Dec 10Pushed 4mo ago1 watchersCompare

[ Source](https://github.com/vjik/simple-type-caster)[ Packagist](https://packagist.org/packages/vjik/simple-type-caster)[ RSS](/packages/vjik-simple-type-caster/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (7)Versions (20)Used By (1)

Simple Type Caster
==================

[](#simple-type-caster)

Simple library for value type casting.

[![Latest Stable Version](https://camo.githubusercontent.com/5e204fc706ad0601517d3b33917e5389d4e9955862893c2ccb63ca5fa88e81f3/68747470733a2f2f706f7365722e707567782e6f72672f766a696b2f73696d706c652d747970652d6361737465722f76)](https://packagist.org/packages/vjik/simple-type-caster)[![Total Downloads](https://camo.githubusercontent.com/719e0f259f61ab3f76a94a7ce958d9cceb1ef1737764ff7bc8f6d65002e4536e/68747470733a2f2f706f7365722e707567782e6f72672f766a696b2f73696d706c652d747970652d6361737465722f646f776e6c6f616473)](https://packagist.org/packages/vjik/simple-type-caster)[![Build status](https://github.com/vjik/simple-type-caster/actions/workflows/build.yml/badge.svg)](https://github.com/vjik/simple-type-caster/actions/workflows/build.yml)[![Code coverage](https://camo.githubusercontent.com/0acde2beebba3653a9570e66aa73844f4aa7800be271379d19b0b778d819fba4/68747470733a2f2f636f6465636f762e696f2f67682f766a696b2f73696d706c652d747970652d6361737465722f67726170682f62616467652e7376673f746f6b656e3d355356394e574b4d515a)](https://codecov.io/gh/vjik/simple-type-caster)[![Mutation score](https://camo.githubusercontent.com/d6eef425e20b89fe043b176ae7a2ce103bbefe2837614f4dec653eb921e88556/68747470733a2f2f696d672e736869656c64732e696f2f656e64706f696e743f7374796c653d666c61742675726c3d687474707325334125324625324662616467652d6170692e737472796b65722d6d757461746f722e696f2532466769746875622e636f6d253246766a696b25324673696d706c652d747970652d6361737465722532466d6173746572)](https://dashboard.stryker-mutator.io/reports/github.com/vjik/simple-type-caster/master)[![static analysis](https://github.com/vjik/simple-type-caster/workflows/static%20analysis/badge.svg)](https://github.com/vjik/simple-type-caster/actions?query=workflow%3A%22static+analysis%22)

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

[](#installation)

The package could be installed with [composer](https://getcomposer.org/download/):

```
composer require vjik/simple-type-caster

```

General usage
-------------

[](#general-usage)

Testing
-------

[](#testing)

### Unit testing

[](#unit-testing)

The package is tested with [PHPUnit](https://phpunit.de/). To run tests:

```
./vendor/bin/phpunit
```

### Static analysis

[](#static-analysis)

The code is statically analyzed with [Psalm](https://psalm.dev/). To run static analysis:

```
./vendor/bin/psalm
```

###  Health Score

45

—

FairBetter than 92% of packages

Maintenance75

Regular maintenance activity

Popularity13

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity70

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

Recently: every ~93 days

Total

18

Last Release

139d ago

PHP version history (5 changes)0.1PHP ^7.4

0.2.1PHP ^7.4|^8.0

0.3PHP ^8.1

0.4.5PHP 8.1 - 8.4

0.4.5.1PHP 8.1 - 8.5

### Community

Maintainers

![](https://www.gravatar.com/avatar/53e5ee1dedd50f71e4aeeac2929f786cdfb400359d4776e6cd806388d0d5df2c?d=identicon)[vjik](/maintainers/vjik)

---

Top Contributors

[![vjik](https://avatars.githubusercontent.com/u/525501?v=4)](https://github.com/vjik "vjik (40 commits)")

---

Tags

typecastingcast

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm, Rector

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/vjik-simple-type-caster/health.svg)

```
[![Health](https://phpackages.com/badges/vjik-simple-type-caster/health.svg)](https://phpackages.com/packages/vjik-simple-type-caster)
```

###  Alternatives

[phpoption/phpoption

Option Type for PHP

2.7k541.2M158](/packages/phpoption-phpoption)[symfony/property-info

Extracts information about PHP class' properties using metadata of popular sources

2.2k256.7M852](/packages/symfony-property-info)[webpatser/laravel-uuid

Laravel integration for webpatser/uuid - High-performance drop-in UUID replacements (15% faster than Ramsey). Provides Str macros, HasUuids trait, facades, and casts. RFC 4122/9562 compliant.

1.8k17.3M129](/packages/webpatser-laravel-uuid)[jetbrains/phpstorm-stubs

PHP runtime &amp; extensions header files for PhpStorm

1.4k27.7M68](/packages/jetbrains-phpstorm-stubs)[marc-mabe/php-enum

Simple and fast implementation of enumerations with native PHP

49444.8M97](/packages/marc-mabe-php-enum)[esensi/model

The base model traits of Esensi

20266.5k1](/packages/esensi-model)

PHPackages © 2026

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