Normal view

Before yesterdayMain stream

PSL 5.0 Released: Crypto, Terminal UI, Binary Parsing, Process Management, and a Full Networking Stack Rewrite

PSL 5.0 is out. This is the biggest release of the PHP Standard Library yet, with 10 new components.

What's new:

  • Crypto - symmetric/asymmetric encryption, signing, AEAD, KDF, HKDF, key exchange, stream ciphers (libsodium)
  • Binary - fluent Reader/Writer API for structured binary data in any byte order
  • Terminal & Ansi - full TUI framework with buffered rendering, layouts, widgets, keyboard/mouse events
  • Process - async process management inspired by Rust's Command API, replaces proc_open
  • Networking rewrite - TCP, TLS, UDP, Unix, CIDR, Socks with connection pooling and retry logic
  • DateTime - new Period and Interval types
  • Performance - optimizations across Vec, Dict, Str, Iter, Type with up to 100% improvement in benchmarks

Requires PHP 8.4+.

Docs: https://psl.carthage.software/5.0.0/

submitted by /u/azjezz to r/PHP
[link] [comments]
❌
❌