Download the PHP package kislayphp/core without Composer
On this page you can find all versions of the php package kislayphp/core. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download kislayphp/core
More information about kislayphp/core
Files in kislayphp/core
Package core
Short Description High-performance C++ PHP extension providing HTTP/HTTPS server with routing and middleware for PHP microservices
License Apache-2.0
Homepage https://github.com/KislayPHP/core
Informations about the package core
Kislay Core
Kislay Core is the HTTP runtime for the KislayPHP ecosystem. It provides the embedded HTTP/HTTPS server, strict segment router, request/response lifecycle, middleware, async bridge, and Promise primitives used by the higher-level modules.
Install
Prerequisites for PIE/source builds:
- macOS (Homebrew):
brew install libuv - Debian/Ubuntu: install the development packages for
libuv,curl, and OpenSSL
Ubuntu 24.04 reference flow used for the release verification:
Automation note:
- in a non-interactive automation session on macOS, PIE may stop after the build step because the final copy still goes through
sudo - the built module can still be validated directly from the PIE working directory before the final interactive install step
Build from source:
Runtime contract
- Routes support only static segments and
:paramsegments. - Regex-style routes and wildcard route fragments are rejected at registration time.
- Middleware uses
function ($req, $res)and must return a truthy value to continue. - Query/body parsing is lazy.
listenAsync()requires ZTS. On NTS, runlisten()in its own process.AsyncHttpself-requests are rejected in single PHP runtime mode to avoid deadlocks.
Quick start
Request API
Async primitives
Performance notes
Validated locally for 0.0.10 on the current NTS reference machine with tracing, request-id generation, and request logging disabled:
/plaintext:23789.89 req/s(ab -n 100000 -c 100)/users/:id:18915.87 req/s(ab -n 40000 -c 100)/submit/:id:12974.19 req/s(ab -n 20000 -c 50)- RSS remained flat across the sustained
/plaintextstress run.
Native C++-only paths remain faster than PHP-routed paths. If you need materially higher PHP-route throughput than this NTS single-lane model provides, the next step is ZTS multi-runtime scaling rather than loosening Zend safety.
Production notes
- Use
Discoveryfor service resolution. - Use
Gatewayfor edge routing and rate limiting. - Use
Persistencefor request-scoped transaction/runtime cleanup. - Keep
request_id,trace, andlogoff in benchmark profiles unless you are measuring those features specifically.
Tests
Current local release-candidate result for 0.0.10:
15 passed2 skipped(ZTS-only async coverage)0 failed
Clean Docker verification on PHP 8.5 RC also passed before release:
NTS /plaintext:11157.65 req/s,0 failed,p95 30 msNTS /json:20085.16 req/s,0 failed,p95 9 msZTS /plaintext:16697.28 req/s,0 failed,p95 13 msZTS /json:25055.87 req/s,0 failed,p95 6 ms
Support
- Docs: https://skelves.com/kislayphp/docs/core
- Release matrix: https://skelves.com/kislayphp/docs/release-matrix
- Issues: https://github.com/KislayPHP/core/issues