Laravel AT Protocol Client (alpha & unstable)
1<?php
2
3namespace SocialDept\AtpClient\Client;
4
5use SocialDept\AtpClient\AtpClient;
6use SocialDept\AtpClient\Client\Requests\Atproto;
7
8class AtprotoClient
9{
10 /**
11 * The parent AtpClient instance
12 */
13 public AtpClient $atp;
14
15 /**
16 * Repository operations (com.atproto.repo.*)
17 */
18 public Atproto\RepoRequestClient $repo;
19
20 /**
21 * Server operations (com.atproto.server.*)
22 */
23 public Atproto\ServerRequestClient $server;
24
25 /**
26 * Identity operations (com.atproto.identity.*)
27 */
28 public Atproto\IdentityRequestClient $identity;
29
30 /**
31 * Sync operations (com.atproto.sync.*)
32 */
33 public Atproto\SyncRequestClient $sync;
34
35 public function __construct(AtpClient $parent)
36 {
37 $this->atp = $parent;
38 $this->repo = new Atproto\RepoRequestClient($this);
39 $this->server = new Atproto\ServerRequestClient($this);
40 $this->identity = new Atproto\IdentityRequestClient($this);
41 $this->sync = new Atproto\SyncRequestClient($this);
42 }
43}