PHP Standard Library ( a.k.a. Psl ), is a standard library for PHP, inspired by hhvm/hsl.
The goal of Psl is to provide a consistent, centralized, well-typed set of APIs for PHP programmers.
Supported installation method is via composer
:
composer require azjezz/psl:^2.0
Psl provides an official Psalm plugin that provides further type enhancements:
composer require php-standard-library/psalm-plugin --dev && \
php vendor/bin/psalm-plugin enable php-standard-library/psalm-plugin