Reymart Calicdan

5 Followers
7 Following
16 Posts

Creator of HiblaPHP and creating easy to use Async and Parallel Components for PHP

Making Async PHP fun and easy

@edorian What if, as a compromise, a generics implementation in PHP supported optional runtime enforcement through a php.ini configuration, similar to how assert() works with zend.assertions? This would provide the best of both worlds: runtime generics during development for stronger validation and debugging, while allowing them to be erased in production for maximum performance.
@bobmagicii yes it already support "?" positional paramater and ":name" name parameter,, plus native postgre binding using "$". The problem with pdo is it's blocking and there's no way to do asynchronous operation without resorting to threading or multiprocessing. This library actually uses ext-pgsql under the hood leveraging it's native non blockinh api

I am nearing the release of a fully async, Fiber-based PostgreSQL client for PHP. It features connection pooling and true server-side cancellation to stop database work immediately if a request is aborted.

Using Promise::all(), multiple queries run concurrently and 5 queries taking 1s each can finish in just ~1s total.

After this, I will be working on a DX-focused async query builder for this ecosystem. Open source and docs coming soon.

#PHP #PostgreSQL #Async #Backend #SoftwareEngineering

I am nearing the release of a fully async, Fiber-based PostgreSQL client for PHP. It features connection pooling and true server-side cancellation to stop database work immediately if a request is aborted.

Using Promise::all(), multiple queries run concurrently and 5 queries taking 1s each can finish in just ~1s total.

After this, I will be working on a DX-focused async query builder for this ecosystem. Open source and docs coming soon.

#PHP #PostgreSQL #Async #Backend #SoftwareEngineering

5 x SLEEP(1) MySQL queries, done in ~1s, not ~5s.

I Built hiblaphp/mysql: async MySQL for PHP with connection pooling, prepared statements, streaming, and transactions.

Fiber-native, binary protocol, per-connection LRU statement cache, COM_RESET_CONNECTION between pooled requests, and KILL QUERY via side-channel TCP on cancellation.

Still beta and any feedback is welcome
→ github.com/hiblaphp/mysql

#PHP #MySQL #AsyncPHP #OpenSource #PHPCommunity

5 x SLEEP(1) MySQL queries, done in ~1s, not ~5s.

I Built hiblaphp/mysql: async MySQL for PHP with connection pooling, prepared statements, streaming, and transactions.

Fiber-native, binary protocol, per-connection LRU statement cache, COM_RESET_CONNECTION between pooled requests, and KILL QUERY via side-channel TCP on cancellation.

Still beta and any feedback is welcome
→ github.com/hiblaphp/mysql

#PHP #MySQL #AsyncPHP #OpenSource #PHPCommunity

Testing SSE is hard without blocking threads. Hibla provides a hyper realistic HTTP testing simulation framework to solve this. It simulates token jitter via the event loop, keeping tests fast and async.

Hibla automates JSON decoding and offers a fluent API for streaming assertions.

Hibla HTTP Client: https://github.com/hiblaphp/http-client
Hibla Testing Framework: https://github.com/hiblaphp/http-client-testing

#php #pestphp #ai #asyncphp #webdev #opensource

@Exakat Yes, that is correct. Consider giving it a star if you find it useful and any feedback is appreciated.

PHP is no longer just Request-Response. I built a next-gen, Fiber-native MySQL client for the Hibla ecosystem.

Ground-up Binary Protocol for async apps:
✅ Pooling: Check-on-Borrow + Reset.
✅ Transactions: Auto-retry Deadlocks.
✅ Streaming: Unbuffered + Backpressure.
✅ Cancellation: side-channel KILL QUERY.
✅ Protocols: SSL, SHA256, zlib.

PHP Fibers changed the game. Time for our drivers to catch up!

#PHP #WebDev #Async #MySQL #OpenSource #Hibla

Real-time AI streaming in PHP and Finally clean. Hibla HTTP Client brings first-class SSE support to PHP, async, fiber-based, and fluent. Hook into any LLM stream with a single .onEvent() callback.

Check it out:
http://github.com/hiblaphp/http-client

#PHP #SSE #AsyncPHP