Releases: aazsamir/libphpsky
Releases · aazsamir/libphpsky
v0.9.1
v0.9.0
Full Changelog: v0.8.0...v0.9.0
v0.8.0
v0.8.0 brings custom lexicons support!
There is an example of usage at
https://github.com/aazsamir/libphpsky/tree/main/examples/CustomLexicons
v0.7.0
v0.6.0
v0.5.0
v0.4.0
v0.3.0
Version v0.3.0!
This version brings subscriptions support over Jetstream.
How to use it?
<?php
declare(strict_types=1);
use Aazsamir\Libphpsky\Jetstream\WebSocketClientFactory;
use Aazsamir\Libphpsky\Jetstream\WssClient;
use Aazsamir\Libphpsky\Model\App\Bsky\Feed\Like\Like;
$factory = new WebSocketClientFactory();
$client = new WssClient($factory);
$eventsStream = $client->subscribe(
wantedCollections: [
Like::id(),
]
);
$max = 10000;
foreach ($eventsStream as $i => $event) {
dump($event);
if ($i > $max) {
$client->stop();
}
}I'm also working on supporting subscriptions defined in ATProto lexicons, but it still isn't ready, and it was easier to integrate jetstream.
v0.2.0
v0.1.1
Version v0.1.1
Published recipe package for integration with Laravel
https://github.com/aazsamir/libphpsky-laravel