PHPackages                             alcamo/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. alcamo/string

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

alcamo/string
=============

Objects behaving as strings

0.6.7(2w ago)03412Apache-2.0PHPPHP 7.3 - 8.5

Since Jun 30Pushed 8mo ago1 watchersCompare

[ Source](https://github.com/rv1971/alcamo-string)[ Packagist](https://packagist.org/packages/alcamo/string)[ RSS](/packages/alcamo-string/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (6)Versions (15)Used By (2)

Supplied classes
================

[](#supplied-classes)

Class `StringObject`
--------------------

[](#class-stringobject)

Class that behaves much like a string, providing implicit conversion to string, `count()` and `[]` operations. Useful because derived classes can add methods to such "strings".

Class `ReadonlyStringObject`
----------------------------

[](#class-readonlystringobject)

Like `StringObject`, but preventing any changes to the contained string through `[]` operations.

Class `AbstractEnum`
--------------------

[](#class-abstractenum)

A derived class must define a public constant `VALUES` containing the valid values. Objects of this class then behave like enumerators in that they are guaranteed to contain one of the valid values.

Class `Expander`
----------------

[](#class-expander)

Simple class that replaces placeholders in text, in PSR-3 and other formats.

###  Health Score

46

↑

FairBetter than 92% of packages

Maintenance76

Regular maintenance activity

Popularity16

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity67

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

Recently: every ~316 days

Total

14

Last Release

14d ago

PHP version history (3 changes)0.1PHP 7.3 - 7.4

0.1.1PHP 7.3 - 8.0

0.6.7PHP 7.3 - 8.5

### Community

Maintainers

![](https://www.gravatar.com/avatar/db9722b60c5a69929f1d1c7df3d0d8682d74ed19146a2cdd2dfffa7ddc4abc78?d=identicon)[rv1971](/maintainers/rv1971)

---

Top Contributors

[![rv1971](https://avatars.githubusercontent.com/u/39520256?v=4)](https://github.com/rv1971 "rv1971 (18 commits)")

---

Tags

stringobject

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/alcamo-string/health.svg)

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

###  Alternatives

[myclabs/deep-copy

Create deep copies (clones) of your objects

8.9k894.3M227](/packages/myclabs-deep-copy)[symfony/property-access

Provides functions to read and write from/to an object or array using a simple string notation

2.8k317.3M3.2k](/packages/symfony-property-access)[nette/utils

🛠 Nette Utils: lightweight utilities for string &amp; array manipulation, image handling, safe JSON encoding/decoding, validation, slug or strong password generating etc.

2.1k430.4M1.7k](/packages/nette-utils)[cuyz/valinor

Dependency free PHP library that helps to map any input into a strongly-typed structure.

1.5k13.2M174](/packages/cuyz-valinor)[opis/string

Multibyte strings as objects

7626.6M9](/packages/opis-string)[phootwork/lang

Missing PHP language constructs

1228.2M8](/packages/phootwork-lang)

PHPackages © 2026

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