PHPackages                             standardlibrary/casts-to-string - 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. standardlibrary/casts-to-string

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

standardlibrary/casts-to-string
===============================

Reuseable interface for describing PHP objects that can be cast to a string

v1.0-RC1(8y ago)142GPL-3.0PHPPHP ~7.1

Since Dec 11Pushed 8y ago1 watchersCompare

[ Source](https://github.com/standardlibrary/casts-to-string)[ Packagist](https://packagist.org/packages/standardlibrary/casts-to-string)[ Docs](https://github.com/standardlibrary)[ RSS](/packages/standardlibrary-casts-to-string/feed)WikiDiscussions master Synced 6d ago

READMEChangelog (1)DependenciesVersions (3)Used By (0)

Casts To String
===============

[](#casts-to-string)

[![License](https://camo.githubusercontent.com/a09bcf61c65e0d699519d78f947173d26947bb8dbe8e44c5f0709fcd16145dd8/68747470733a2f2f706f7365722e707567782e6f72672f7374616e646172646c6962726172792f636173742d746f2d737472696e672f6c6963656e7365)](https://packagist.org/packages/standardlibrary/casts-to-string) [![Latest Stable Version](https://camo.githubusercontent.com/276575d149536d55de9af72ef760c823ad0a6cdb0d6bda2a16f1ced41fcaccc9/68747470733a2f2f706f7365722e707567782e6f72672f7374616e646172646c6962726172792f636173742d746f2d737472696e672f762f737461626c65)](https://packagist.org/packages/standardlibrary/cast-to-string) [![Latest Unstable Version](https://camo.githubusercontent.com/8f173f6e407e56aa9a9b1e577ae235e0eb24eeeec5d3f05fd7f031946c5611f4/68747470733a2f2f706f7365722e707567782e6f72672f7374616e646172646c6962726172792f636173742d746f2d737472696e672f762f756e737461626c65)](https://packagist.org/packages/standardlibrary/cast-to-string) [![Total Downloads](https://camo.githubusercontent.com/b757e1e5fc585f56a2c4477420dbb447e08055de469e91f78e715326be22b9fa/68747470733a2f2f706f7365722e707567782e6f72672f7374616e646172646c6962726172792f636173742d746f2d737472696e672f646f776e6c6f616473)](https://packagist.org/packages/standardlibrary/cast-to-string) [![Build Status](https://camo.githubusercontent.com/24cfd3e4ff0fa22431a646768b96dc7611972cd6a379d605c707acbe45a585ce/68747470733a2f2f7472617669732d63692e6f72672f7374616e646172646c6962726172792f63617374732d746f2d737472696e672e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/standardlibrary/casts-to-string) [![Scrutinizer Code Quality](https://camo.githubusercontent.com/af57e3c8d543aa1d524bb73ba48d99dae7d60dc589b77934dbd853c4246c47db/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f7374616e646172646c6962726172792f63617374732d746f2d737472696e672f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/standardlibrary/casts-to-string/?branch=master) [![Code Coverage](https://camo.githubusercontent.com/515bd6dd2bcd52db09f9e9a0f80f6db7b6180d257ea7e95bab9bf3daff7f82e7/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f7374616e646172646c6962726172792f63617374732d746f2d737472696e672f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/standardlibrary/casts-to-string/?branch=master)

A reuseable interface for describing PHP objects that can be cast to a string.

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

[](#installation)

```
composer require standardlibrary/casts-to-string

```

Getting Started
---------------

[](#getting-started)

Further information
-------------------

[](#further-information)

- For information on contributing please read the [guidelines](../blob/master/CONSTRIBUTING.md) and the community [conduct policy](../blob/master/CODE_OF_CONDUCT.md)
- The full license details can be found [here](../blob/master/LICENCE)

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity45

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

3079d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9180037508701a50d15e6806ea198a315ae0702159c9633376eaccab7e6c19e2?d=identicon)[unwarysheep](/maintainers/unwarysheep)

---

Top Contributors

[![simondeeley](https://avatars.githubusercontent.com/u/493834?v=4)](https://github.com/simondeeley "simondeeley (21 commits)")

---

Tags

contractsphp-libraryphp7standard-libraryphpstringcasts

### Embed Badge

![Health badge](/badges/standardlibrary-casts-to-string/health.svg)

```
[![Health](https://phpackages.com/badges/standardlibrary-casts-to-string/health.svg)](https://phpackages.com/packages/standardlibrary-casts-to-string)
```

###  Alternatives

[coduo/php-to-string

Simple library that converts PHP value into strings

27112.7M10](/packages/coduo-php-to-string)[iteks/laravel-enum

A comprehensive Laravel package providing enhanced enum functionalities, including attribute handling, select array conversions, and fluent facade interactions for robust enum management in Laravel applications.

2516.7k](/packages/iteks-laravel-enum)

PHPackages © 2026

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