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

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

peekandpoke/php-types
=====================

Basic types for PHP like Enums, LocalDate etc...

v1.2.0(8y ago)22.7k2BSD-3-ClausePHP

Since May 16Pushed 7y ago1 watchersCompare

[ Source](https://github.com/PeekAndPoke/php-types)[ Packagist](https://packagist.org/packages/peekandpoke/php-types)[ RSS](/packages/peekandpoke-php-types/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (1)Dependencies (1)Versions (10)Used By (2)

[![Code Coverage](https://camo.githubusercontent.com/526ea8e873b6db04f35995df22534986ec78484cc1aa6de79d4d94ab03df0ec6/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f5065656b416e64506f6b652f7068702d74797065732f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/PeekAndPoke/php-types/?branch=master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/45cf6d442f8fdce999c907c31e904128b51cc275e2d5a0e3a6c17fbc6196a92f/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f5065656b416e64506f6b652f7068702d74797065732f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/PeekAndPoke/php-types/?branch=master)[![Build Status](https://camo.githubusercontent.com/f11dc45ee5248f00af1bf8adeac31b4ba999794f1a7f9541054c9387949b931f/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f5065656b416e64506f6b652f7068702d74797065732f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/PeekAndPoke/php-types/build-status/master)

Why PHP-Types
=============

[](#why-php-types)

There are some types that PHP does not provide as part of the language, e.g.:

- Enums
- LocalDate (a date object that enforces creation WITH timezone)

TODO
====

[](#todo)

( ) LocalDate::isSameDay

( ) LocalDate::isSameWeek

( ) LocalDate::isSameMonth

( ) LocalDate::isSameYear

( ) LocalDate::isSameDecade

( ) LocalDate::isSameCentury

( ) LocalDate::isSameMillennium

( ) extract all DST (daylight saving time aware methods from LocalDate)

$date-&gt;dst()-&gt;getShift() $date-&gt;dst()-&gt;modifyByDays() ...

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity69

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

Total

9

Last Release

3009d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/82d9145b8f142b52aa21e66cddb1e493e4f6dbcd0629f6a65204260e890dca5c?d=identicon)[PeekAndPoke](/maintainers/PeekAndPoke)

---

Top Contributors

[![PeekAndPoke](https://avatars.githubusercontent.com/u/753129?v=4)](https://github.com/PeekAndPoke "PeekAndPoke (26 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

PHPackages © 2026

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