Something went wrong. Try again.
A barebones implementation of an atproto PDS in PHP and Slim Framework 4.
pds php atproto
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637<?php
declare(strict_types=1);
namespace App\Domain\Repo;
/** * Decodes dag-cbor bytes back into a PHP value tree. * * CBOR types -> PHP types: * major 0 (uint) -> int * major 1 (negative int) -> int * major 2 (byte string) -> CborBytes * major 3 (text string) -> string * major 4 (array) -> list<mixed> * major 5 (map) -> array<string, mixed> * tag(42) (CID link) -> CidLink * 0xf4 false -> false * 0xf5 true -> true * 0xf6 null -> null * 0xfb (double) -> float */interface DagCborDecoder{ /** * @return mixed null|bool|int|float|string|CborBytes|CidLink|array<mixed> */ public function decode(string $bytes): mixed;
/** * Decode all concatenated dag-cbor values from $bytes. * * @return list<mixed> */ public function decodeAll(string $bytes): array;}