Important
In light of recent events in Gaza, I encourage everyone to educate themselves on the ongoing issues in Palestine and consider supporting the people there. Here are some resources and donation links:
- Decolonize Palestine - An informative resource to better understand the situation in Palestine. Please take the time to read it.
- One Ummah - Gaza Emergency Appeal - A platform to provide direct donations to help the people in Gaza.
- Islamic Relief UK - Palestine Appeal - Another trusted platform to provide support for those affected in Palestine.
Thank you for taking a moment to bring awareness and make a difference. π΅πΈβ€οΈ
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.
<?php
declare(strict_types=1);
use Psl\Async;
use Psl\TCP;
use Psl\IO;
use Psl\Shell;
use Psl\Str;
Async\main(static function(): int {
IO\write_line('Hello, World!');
[$version, $connection] = Async\concurrently([
static fn() => Shell\execute('php', ['-v']),
static fn() => TCP\connect('localhost', 1337),
]);
$messages = Str\split($version, "\n");
foreach($messages as $message) {
$connection->writeAll($message);
}
$connection->close();
return 0;
});
Supported installation method is via composer:
composer require azjezz/psl
Please refer to the php-standard-library/psalm-plugin
repository.
Please refer to the php-standard-library/phpstan-extension
repository.
You can read through the API documentation in docs/
directory.
Have a look at CONTRIBUTING.md
.
Thanks to our sponsors and supporters:
JetBrains |
---|
The MIT License (MIT). Please see LICENSE
for more information.