Laravel AT Protocol Client (alpha & unstable)
3
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add extensions section to README with link to docs

+30
+30
README.md
··· 946 946 ATP_SCOPE_REDIRECT=/login 947 947 ``` 948 948 949 + ## Extending the Client 950 + 951 + Add custom functionality to AtpClient by registering your own domain clients or request clients. Extensions are lazily instantiated on first access. 952 + 953 + ### Register Extensions 954 + 955 + Register extensions in your service provider's `boot()` method: 956 + 957 + ```php 958 + use SocialDept\AtpClient\AtpClient; 959 + 960 + // Add a new domain client: $client->analytics 961 + AtpClient::extend('analytics', fn(AtpClient $atp) => new AnalyticsClient($atp)); 962 + 963 + // Add to an existing domain: $client->bsky->metrics 964 + AtpClient::extendDomain('bsky', 'metrics', fn($bsky) => new MetricsClient($bsky)); 965 + ``` 966 + 967 + ### Usage 968 + 969 + ```php 970 + $client = Atp::as('user.bsky.social'); 971 + 972 + $client->analytics->trackEvent('post_created'); 973 + $client->bsky->metrics->getEngagement(); 974 + ``` 975 + 976 + For complete documentation including creating custom clients, testing, and advanced patterns, see [docs/extensions.md](docs/extensions.md). 977 + 949 978 ## Available Commands 950 979 951 980 ```bash ··· 971 1000 - [AT Protocol Documentation](https://atproto.com/) 972 1001 - [Bluesky API Docs](https://docs.bsky.app/) 973 1002 - [CRYPTO.md](CRYPTO.md) - Cryptographic implementation details 1003 + - [docs/extensions.md](docs/extensions.md) - Client extensions guide 974 1004 975 1005 ## Support & Contributing 976 1006