Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 1013 Bytes

README.md

File metadata and controls

28 lines (19 loc) · 1013 Bytes

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();