Skip to content
forked from tumugin/stannum

Stannum makes PHP's scalar types more expressive!

License

Notifications You must be signed in to change notification settings

aoi-tech/stannum

 
 

Repository files navigation

Stannum

phpcs(PSR12) CI Coverage Status

Stannum makes PHP's scalar types more expressive!

This project is under development. It is not recommended using in production.

Supported environments

Stannum supports and tested on PHP 7.4 or above.

Currently, Stannum is tested on the CI environment below.

  • PHP 7.4/8.0/8.1 on latest Windows
  • PHP 7.4/8.0/8.1 on latest Ubuntu(Linux)
  • PHP 7.4/8.0/8.1 on latest macOS

How to use

// Will return [1, 3, 5]
SnIntegerList::byIntArray([1, 2, 3, 4, 5, 6])
    ->filter(fn(SnInteger $val) => $val->isOdd())
    ->toIntArray();

About

Stannum makes PHP's scalar types more expressive!

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 99.1%
  • Dockerfile 0.9%