PHPackages                             howkins/cast - 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. howkins/cast

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

howkins/cast
============

Cast variables

1.0.1(7y ago)012PHPPHP &gt;=5.5.9

Since Aug 8Pushed 7y ago1 watchersCompare

[ Source](https://github.com/howkins/cast)[ Packagist](https://packagist.org/packages/howkins/cast)[ RSS](/packages/howkins-cast/feed)WikiDiscussions master Synced yesterday

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

Cast
====

[](#cast)

[![Packagist](https://camo.githubusercontent.com/046f4f91c79575098e3eda6a872944e0c5b9db39c59eab73b1fa038b7a245e84/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f686f776b696e732f636173742e737667)](https://packagist.org/packages/howkins/cast)[![Packagist](https://camo.githubusercontent.com/f2f88a97ce3124f1725e2aca16c131a5fab73c974963d05f9baebbbcd765eccd/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f686f776b696e732f636173742e737667)](https://packagist.org/packages/howkins/cast)[![Packagist](https://camo.githubusercontent.com/1d8f1341b032dbb6e66f55c5c8d4b32bbb03a33444c6f2a3c5409507471019d9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f686f776b696e732f636173742e737667)](https://packagist.org/packages/howkins/cast)

Instalation
===========

[](#instalation)

```
composer require howkins/cast

```

If Laravel version is less than 5.5 is need to include manually in `config/app.php`

Service provider

```
	'providers' => [
		Howkins\Cast\Providers\CastServiceProvider::class
	]
```

Facade

```
	'aliases' => [
		"Cast" => Howkins\Cast\Facades\Cast::class
	]
```

Can be usage and contract in follow namespace `Howkins\Cast\Contracts\Cast`

Available methods for cast
==========================

[](#available-methods-for-cast)

`Cast::_str()` or `Cast::_string()`

`Cast::_int()` or `Cast::_integer()`

`Cast::_bool()` or `Cast::_boolean()`

```
Cast::_bool('false', $strict = 0); // print bool(false) if strict is 1 will return bool(true)
Cast::_bool('0.0', $strict = 0); // print bool(false) if strict is 1 will return bool(true)
```

`Cast::_arr()` or `Cast::_array()`

`Cast::_obj()` or `Cast::_object()`

`Cast::_null()`

`Cast::_float()`

`Cast::_double()`

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

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

Total

2

Last Release

2884d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/6891179?v=4)[Georgi Zhelezov](/maintainers/howkins)[@howkins](https://github.com/howkins)

---

Top Contributors

[![howkins](https://avatars.githubusercontent.com/u/6891179?v=4)](https://github.com/howkins "howkins (3 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/howkins-cast/health.svg)

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

###  Alternatives

[distantnative/retour-for-kirby

Manage redirects and track 404s right from the Kirby CMS Panel

14695.1k1](/packages/distantnative-retour-for-kirby)[hhxsv5/php-coroutine

A lightweight library to implement coroutine by yield &amp; Generator.

282.1k](/packages/hhxsv5-php-coroutine)

PHPackages © 2026

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