PHPackages                             agmakonts/stl - 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. agmakonts/stl

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

agmakonts/stl
=============

Standard Type Lib

v2.2.1.1(10y ago)62.2k2[1 issues](https://github.com/AGmakonts/STL/issues)3Apache-2.0PHPPHP &gt;=5.5CI failing

Since Feb 11Pushed 10y ago5 watchersCompare

[ Source](https://github.com/AGmakonts/STL)[ Packagist](https://packagist.org/packages/agmakonts/stl)[ RSS](/packages/agmakonts-stl/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (10)Dependencies (5)Versions (24)Used By (3)

STL
===

[](#stl)

Development: [![Scrutinizer Code Quality](https://camo.githubusercontent.com/720d9353696eed3fd54e443432b203a7277d656a72eab24916a4b201ece4bc61/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f41476d616b6f6e74732f53544c2f6261646765732f7175616c6974792d73636f72652e706e673f623d646576656c6f706d656e74)](https://scrutinizer-ci.com/g/AGmakonts/STL/?branch=development) [![Code Coverage](https://camo.githubusercontent.com/24874fb2c23d6a9371db431b83b9c463f4a063e5c5ee40fa34a3aff534c70e4a/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f41476d616b6f6e74732f53544c2f6261646765732f636f7665726167652e706e673f623d646576656c6f706d656e74)](https://scrutinizer-ci.com/g/AGmakonts/STL/?branch=development) [![Build Status](https://camo.githubusercontent.com/e68344ae7ac8f8f892f176cee4c9019925bad62a68c385709db7f6a7bef579ac/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f41476d616b6f6e74732f53544c2f6261646765732f6275696c642e706e673f623d646576656c6f706d656e74)](https://scrutinizer-ci.com/g/AGmakonts/STL/build-status/development)

Simple Type Lib for PHP
-----------------------

[](#simple-type-lib-for-php)

Library inspired by [nicolopignatelli/valueobjects](https://github.com/nicolopignatelli/valueobjects/blob/master/src/ValueObjects/Null/Null.php). My goal was to create a set of classes that will serve as a object oriented implementation of basic data types to fight with PHPs dynamic types and at the same time add few extra classes for common tasks. One of the main features of STL is that all objects have one instance per value `String::get('Test') === String::get('Test')`. Thanks to that approach it is easy to store objects in for example `SPLObjectStorage` or similar containers that depend od object hash.

All objects are immutable - this is required because instances are shared.

Requirements
------------

[](#requirements)

- PHP &gt;= 5.4
- OpenSSL Extension

Quick start
-----------

[](#quick-start)

```
//Create or get String instance
$string = String::get('String value');

//Create or get Integer instance
$integer = Integer::get(12213);

//Chaining

$integer = Integer::get(10)->add(Integer::get(10));
```

Library parts description
-------------------------

[](#library-parts-description)

### Number

[](#number)

All classes in `\Number` namespace are designed to handle numeric types. Decimal internally uses strings for compatibility with bcmath functions but interface exposes scalar numbers.

### DateTime

[](#datetime)

...

Roadmap
-------

[](#roadmap)

Currently, after quite a big rebuild (that is still in progress) only String is implemented almost fully, rest of planned data types and value objects is listed below:

- Number
    - Integer - Ready
    - Decimal - Ready
    - Fraction
- DateTime
    - Date
    - Year
    - Month
    - Week
    - Day
    - Time
    - Hour
    - Minute
    - Second
    - DateTime - Started
- Structure
    - TypedArray
    - TypedList
    - Dictionary
- Identity
    - UUID
    - Numeric
    - Alphanumeric
    - Autonumeric - Ready
- Text
    - Word
    - Sentence
    - Paragraph

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance17

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community21

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 88.4% 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 ~9 days

Recently: every ~17 days

Total

21

Last Release

3913d ago

Major Versions

v1.0.12 → v2.0.12015-05-20

v1.1.0 → v2.2.02015-07-20

### Community

Maintainers

![](https://www.gravatar.com/avatar/387e8d8ef081c9743964bf856f57d3cca70d45bae5ee99c0238d9760fb5f8388?d=identicon)[AdamiecRadek](/maintainers/AdamiecRadek)

![](https://www.gravatar.com/avatar/9c9f99d7082448f6f2e1a9b42a52ac8bc5ac766921e3c9ebabe29bd64bf26cf2?d=identicon)[AGmakonts](/maintainers/AGmakonts)

---

Top Contributors

[![AGmakonts](https://avatars.githubusercontent.com/u/4051481?v=4)](https://github.com/AGmakonts "AGmakonts (122 commits)")[![AdamiecRadek](https://avatars.githubusercontent.com/u/8867468?v=4)](https://github.com/AdamiecRadek "AdamiecRadek (12 commits)")[![mateusz-lisik](https://avatars.githubusercontent.com/u/1838101?v=4)](https://github.com/mateusz-lisik "mateusz-lisik (3 commits)")[![tomekosadnik](https://avatars.githubusercontent.com/u/9258193?v=4)](https://github.com/tomekosadnik "tomekosadnik (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/agmakonts-stl/health.svg)

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

###  Alternatives

[pocketmine/pocketmine-mp

A server software for Minecraft: Bedrock Edition written in PHP

3.5k74.6k86](/packages/pocketmine-pocketmine-mp)[firefly-iii/data-importer

Firefly III Data Import Tool.

7545.8k](/packages/firefly-iii-data-importer)[ytake/valueobjects

A PHP library/collection of classes aimed to help developers using and undestanding immutable objects.(temporary package)

6086.2k](/packages/ytake-valueobjects)

PHPackages © 2026

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