Registry / serialization / nocarrier-hal

nocarrier-hal

JSON →
library0.9.14phppackagistunverified

application/hal builder/formatter for PHP 5.3+, implementing the HAL specification.

composer require nocarrier/hal
INSTALL
IMPORT
SIG · NOCARRIER-HAL
N
nocarrier-hal
serializationphpv0.9.14
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Hal
use Nocarrier\Hal;

Create a HAL resource and output as JSON.

use Nocarrier\Hal; $hal = new Hal('/orders/123'); $hal->setData(['total' => 30.00]); echo $hal->asJson();
Debug
Known issues
breakingRequires PHP 5.3+; may not be compatible with PHP 8+.
fix
Consider using a more modern HAL library like json-api or similar.
affects: >=0.9.0
Upgrade
Version history
0.9.14latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
nocarrier-hal — pip install nocarrier-hal · libregistry