Download Latest Version Crown 5.4.0 source code.tar.gz (373.0 kB)
Email in envelope

Get an email when there's a new version of Psl

Home / 5.1.0
Name Modified Size InfoDownloads / Week
Parent folder
Crown 5.1.0 source code.tar.gz 2026-03-05 368.9 kB
Crown 5.1.0 source code.zip 2026-03-05 921.5 kB
README.md 2026-03-05 902 Bytes
Totals: 3 Items   1.3 MB 0

PSL - Crown 5.1.0

Features

  • TLS connection pooling: New TLS\TCPConnector implements TCP\ConnectorInterface, enabling TLS connections to be pooled via TCP\SocketPool. Pass a TCPConnector to SocketPool and get automatic connection reuse without repeated TLS handshakes.
  • TLS\StreamInterface now extends TCP\StreamInterface, making TLS streams compatible with any API that accepts TCP streams.

Example

:::php
$pool = new TCP\SocketPool(
  new TLS\TCPConnector(
    new TCP\Connector(),
    new TLS\Connector($config),
  ),
);

$stream = $pool->checkout('example.com', 443);
// ... use stream ...
$pool->checkin($stream);

// Next checkout reuses the TLS connection
$stream = $pool->checkout('example.com', 443);

Full Changelog: https://github.com/azjezz/psl/compare/5.0.0...5.1.0

Source: README.md, updated 2026-03-05