Download the PHP package macula-io/macula-php without Composer
On this page you can find all versions of the php package macula-io/macula-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download macula-io/macula-php
More information about macula-io/macula-php
Files in macula-io/macula-php
Download macula-io/macula-php
More information about macula-io/macula-php
Files in macula-io/macula-php
Vendor macula-io
Package macula-php
Short Description PHP client for the macula mesh: FFI over macula-go's released libmacula (calls and streams by direct dial, serving, pubsub, node-served content, the DHT)
License Apache-2.0
Homepage https://github.com/macula-io/macula-php
Package macula-php
Short Description PHP client for the macula mesh: FFI over macula-go's released libmacula (calls and streams by direct dial, serving, pubsub, node-served content, the DHT)
License Apache-2.0
Homepage https://github.com/macula-io/macula-php
Please rate this library. Is it a good library?
Informations about the package macula-php
macula-php
PHP SDK for the Macula mesh, via FFI over macula-go
--- > **0.11.0 (2026-11-11):** over libmacula from macula-go v0.31.0, whose C ABI > is 2. A served procedure now names who may call it: `serve` and > `serveStream` take a required `ServePolicy`, `ServePolicy::open()` is the > line that serves anyone, and a serve that names no policy is refused before a > station hears of the procedure. The ABI moved to 2 to carry that, so a > library older than v0.31.0 is refused at load by name. Breaking: every > `serve` and `serveStream` call gains its policy argument. A default > `composer require macula-io/macula-php` resolves 0.11.0. > > **A0, 0.10.0 (2026-10-29):** over libmacula from macula-go v0.29.0. A call a > keyed provider refuses `sealed_required` is now resealed to the key that > refusal carries and answered, instead of failing on a stale keyless candidate. > Sealing is still the default only where the provider names a KEM key, and a > procedure served with no policy is still open; refusing a clear call unless the > caller opts out is not in this release. A default > `composer require macula-io/macula-php` resolves 0.10.0. > > **Wire 1.0, 0.9.0 (2026-10-19):** it speaks wire 1.0 (macula 15) and nothing > older, so it reaches only a wire 1.0 station. The fleet moved to wire 1.0 on 19 Oct 2026 at 18:03 UTC, and from then on 0.8.2 and everything before it > can no longer connect. A default `composer require macula-io/macula-php` > resolves 0.9.0 until 0.10.0. > > **Status, 2026-10-14:** over macula-go's **released** libmacula (the tag in > `abi/MACULA_GO_REF`, ABI 2), so on wire 1.0 (macula 15): handshake v5 bound to > the TLS session, end-to-end sealed calls and streams to a provider that > advertises a KEM key (`Confidentiality`), post-quantum identities (ML-DSA-87, > as the ML-DSA-87 + RSA-PSS-4096 composite in pq_hybrid, the fleet's profile) > and hybrid ML-KEM key exchange on SecP384r1MLKEM1024. Calls and streams by > direct dial, serving (under an org or in a node's own namespace), > publish/subscribe, sealed groups (see [Sealed groups](#sealed-groups)), the > DHT and node-served content are tested against in-process stations on every > `composer test`, as are UCAN-gated calls and serving and the seal report. > `Group` no longer prints the org's grant when it is dumped or encoded > (macula-php#11): the grant is a bearer credential a distributor accepts, and > `__debugInfo()` and `JsonSerializable` name it as present rather than > printing it, which keeps it out of `print_r`, `var_dump` and a logger's json > context. `options()` still carries it, which is what a publish needs. > Releases before 0.7.0 bind macula-go v0.12.0 and cannot call a provider > that advertises a KEM key. ## What is this? A PHP SDK for the Macula mesh: a node's key, a pool of links to stations it pins by node_id, calls and streams that reach a provider by direct dial, serving procedures, publish/subscribe, node-served content and the DHT. It is an FFI binding over [macula-go](https://github.com/macula-io/macula-go): the Go SDK's released shared library, libmacula, which PHP loads with `ext-ffi`, rather than a third implementation of QUIC, TLS 1.3 with a hybrid post-quantum key exchange, deterministic CBOR and signed frames. ## Quick start A node needs a station to link to, **pinned by its node_id**, and the key of each realm it trusts, which the realm publishes. Its own key is created on first use and kept in a file readable by its owner only. Serving is a worker of its own, since a PHP process runs one thing at a time (see [Serving](#serving)): Runnable versions are in [`examples/`](examples). ### Coming from 0.4 and earlier Everything moved to the macula 12 wire, and the API with it. There is no compatibility layer. - **New identities.** A macula 12 node_id derives from an ML-DSA-87 key (or the LAMPS composite in `pq_hybrid`), so no Ed25519 identity carries over. `NodeKey::loadOrCreate($path)` makes a new key file. **Re-join your realms and re-trust your agents**: anything that named your old node_id must be redone with the new one. - `KeyPair` is now `NodeKey`; `Session` is `Pool`, whose seeds carry the station's node_id and whose `realmTrust` pins realm keys; `callDirect` is simply `call`; `resolveDirect` is `providers`; `serveWaitForCall` is `Served::next` or `Served::handle`; `streamAccept` is `ServedStream::next` or `ServedStream::handle`; `putDirect`/`getDirect` are `shareContent`/ `getContent`. - `Value` is gone: a payload is a plain PHP value (see [Payloads](#payloads)). - `Ucan` is back: removed at 0.5.0, and returned at 0.8.0 as the wire's UCANs, minted with `NodeKey::ucan` and named in a chain with `Ucan::proofId` (see [What's implemented](#whats-implemented)). - Serving an org procedure needs the realm's org directory and the org's delegation to your node in the DHT: a realm admits orgs through a human. ## What's implemented | Primitive | Caller | Provider | Notes | |---|---|---|---| | Node keys (`NodeKey`) | ✅ | ✅ | `pq_hybrid` (the fleet's) or `pq_pure`; key files readable by the owner only; `sign` and `verify`, pq_hybrid checked against the LAMPS draft's own vector and cross-verified with macula 12.7.0 | | Pool of station links (`Pool::connect`) | ✅ | ✅ | Seeds pinned by node_id; realm keys pinned; links redialed with subscriptions and served procedures replayed | | Calls by direct dial (`call`, `providers`) | ✅ | ✅ | Errors arrive as `ProviderError` / `RelayError`; a station's refusal of a serve or subscribe is a `RefusedError` with its `reason`, `registration` and `station`; every other failure is a `MaculaException` whose `kind` is the library's error kind | | UCANs (`NodeKey::ucan`, `Ucan::proofId`, `ucan:`/`proofs:`, `ServePolicy`) | ✅ | ✅ | Every serve names a policy: `ServePolicy::open()` for anyone, or a UCAN one. A token is minted for the node that presents it, delegated by `prf`; a procedure served under `ServePolicy::ucanRequired` or `realmMemberRequired` reaches its handler only with a chain the policy accepts, refused otherwise as `ProviderError` `unauthorized` | | The seal report (`callReport`, `Stream::report`) | ✅ | — | Whether the exchange behind a result was sealed, to which provider and key | | End-to-end sealing (`confidential:`, `kemAdvertise:`) | ✅ | ✅ | A call or stream is sealed whenever the provider's advertisement names a KEM key; `Confidentiality::Required` fails with `ConfidentialityError` rather than go in the clear; a served `Request` says whether it came `sealed`. A keyed provider that refuses a call `sealed_required` has it resealed to the key in the refusal's signed tbs and answered, the key that provider holds now, rather than failing on a stale keyless candidate (macula-go v0.29.0) | | A node's own namespace (`ownProcedure`) | ✅ | ✅ | `~Built with the BEAM's protocol, ported to PHP — sponsor the work if this saved you some time
All versions of macula-php with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.1
ext-ffi Version *
ext-ffi Version *
The package macula-io/macula-php contains the following files
Loading the files please wait ...