Laravel AT Protocol Client (alpha & unstable)
1<?php
2
3namespace SocialDept\AtpClient\Client;
4
5use SocialDept\AtpClient\AtpClient;
6use SocialDept\AtpClient\Client\Records\FollowRecordClient;
7use SocialDept\AtpClient\Client\Records\LikeRecordClient;
8use SocialDept\AtpClient\Client\Records\PostRecordClient;
9use SocialDept\AtpClient\Client\Records\ProfileRecordClient;
10use SocialDept\AtpClient\Client\Requests\Bsky;
11
12class BskyClient
13{
14 /**
15 * The parent AtpClient instance
16 */
17 public AtpClient $atp;
18
19 /**
20 * Feed operations (app.bsky.feed.*)
21 */
22 public Bsky\FeedRequestClient $feed;
23
24 /**
25 * Actor operations (app.bsky.actor.*)
26 */
27 public Bsky\ActorRequestClient $actor;
28
29 /**
30 * Post record client
31 */
32 public PostRecordClient $post;
33
34 /**
35 * Profile record client
36 */
37 public ProfileRecordClient $profile;
38
39 /**
40 * Like record client
41 */
42 public LikeRecordClient $like;
43
44 /**
45 * Follow record client
46 */
47 public FollowRecordClient $follow;
48
49 public function __construct(AtpClient $parent)
50 {
51 $this->atp = $parent;
52 $this->feed = new Bsky\FeedRequestClient($this);
53 $this->actor = new Bsky\ActorRequestClient($this);
54 $this->post = new PostRecordClient($this);
55 $this->profile = new ProfileRecordClient($this);
56 $this->like = new LikeRecordClient($this);
57 $this->follow = new FollowRecordClient($this);
58 }
59}