Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Psl Laravel Package

azjezz/psl

PSL is a modern, well-typed standard library for PHP 8.4+, inspired by HHVM’s HSL. It offers safer, predictable APIs for async, collections, networking, I/O, crypto, terminal UI, and robust data validation—replacing brittle built-ins with consistent alternatives.

View on GitHub
Deep Wiki
Context7

Locale

The Locale component provides a backed enum containing 700+ locale identifiers (such as en_US, fr_FR, ja_JP). Using an enum instead of raw strings eliminates typos, enables IDE autocompletion, and makes locale parameters type-safe throughout your application.

Usage

Selecting a Locale

Pick a locale by name -- every case maps to its standard locale string:

@example('system/locale-select.php')

Default Locale

Locale::default() reads the locale configured via PHP's intl.default_locale setting. If no locale is configured or the configured value is not recognized, it falls back to Locale::English:

@example('system/locale-default.php')

Inspecting a Locale

Each locale instance exposes methods to extract its parts:

@example('system/locale-inspect.php')

Script-based locales also work:

@example('system/locale-script.php')

Integration with DateTime

The Locale enum is used by PSL's DateTime formatting to produce locale-aware output:

@example('system/locale-datetime.php')

See src/Psl/Locale/ for the full API.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport
twbs/bootstrap4