PHPackages                             agenciaecode/types - 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. agenciaecode/types

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

agenciaecode/types
==================

Common types for clean code PHP projects.

v3.0.11(1y ago)1249MITPHPPHP &gt;=8.2

Since Oct 6Pushed 1y ago2 watchersCompare

[ Source](https://github.com/agenciaecode/types)[ Packagist](https://packagist.org/packages/agenciaecode/types)[ Docs](https://github.com/agenciaecode/types)[ RSS](/packages/agenciaecode-types/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (4)Versions (37)Used By (0)

Common Types
============

[](#common-types)

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

[](#requirements)

- PHP ^8.1

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

[](#installation)

To install this module, run the following command in your terminal:

```
composer require agenciaecode/types
```

Basic usage
-----------

[](#basic-usage)

```
$email = Email::from('email@domain.com');
echo $email->getHiddenFormat(); // Output: e***l@d********m
```

Common methods
--------------

[](#common-methods)

Most type have at least the following common methods:

```
 - public static function from(...$args)
 - public static function tryFrom(...$args)
 - public static function innFrom(...$args)
 - public static function isValid(...$args)
 - public function equals($value)
 - public function getValue(...$args)
 - public function __toString(...$args)
```

Available Types
---------------

[](#available-types)

- Address
- Arr
- Boolean
- Byte
- Centimeter
- Cnpj
- Cpf
- Domain
- Email
- Gram
- Gigabyte
- Ip
- Kilobyte
- Kilogram
- Megabyte
- Money
- Numeric
- Ounce
- Password
- Path
- PhoneNumber
- Pound
- PostalCode
- Slug
- Str
- Url
- Uuid

Coming soon
-----------

[](#coming-soon)

- CreditCard
- Duration
- Foot
- Hour
- Kilometer
- Meter
- Minute
- Percent
- Second
- Temperature

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity71

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

Recently: every ~114 days

Total

35

Last Release

622d ago

Major Versions

v1.2.0 → v2.0.02023-02-18

v2.0.7 → v3.0.02023-05-15

PHP version history (2 changes)v1.0.0PHP &gt;=8.1

v3.0.10PHP &gt;=8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/0d02c6a4b734eebc5e8a2a765907f3db4944ee0688d725c91666bde6fb4a1c10?d=identicon)[agenciaecode](/maintainers/agenciaecode)

---

Top Contributors

[![mkioschi](https://avatars.githubusercontent.com/u/2711935?v=4)](https://github.com/mkioschi "mkioschi (155 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/agenciaecode-types/health.svg)

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

###  Alternatives

[pocketmine/pocketmine-mp

A server software for Minecraft: Bedrock Edition written in PHP

3.5k74.6k86](/packages/pocketmine-pocketmine-mp)[getdkan/dkan

DKAN Open Data Catalog

385135.4k2](/packages/getdkan-dkan)[firefly-iii/data-importer

Firefly III Data Import Tool.

7545.8k](/packages/firefly-iii-data-importer)[tomaj/hermes

Simple php background processing library

38251.0k5](/packages/tomaj-hermes)

PHPackages © 2026

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