AD
Launch on Firsto—Launch your project today — get a DR57 backlink instantly.
BSkyInfo LogoBskyInfo
All ToolsCategoriesCollectionsFeed DirectoryLabeler DirectoryArticlesGuidesGlossaryBluesky SDKsSponsor
Submit
All ToolsCategoriesCollectionsFeed DirectoryLabeler DirectoryGuidesGlossaryArticlesBluesky SDKsSponsorSubmit
  1. SDKs
  2. /PHP
  3. /libphpsky
aazsamir

libphpsky

A PHP SDK for Bluesky and AT Protocol by aazsamir

Libphpsky is a PHP library designed to interact with Bluesky decentralized social media protocol - AT protocol.

GitHub Stats

7stars
0forks
1contributors
1open issues

Dates

Created:December 23, 2024
Last updated:October 20, 2025

README

The following content is from libphpsky's GitHub repository. All rights reserved by the original author.

Libphpsky

Libphpsky is a PHP library designed to interact with the Bluesky decentralized social media protocol. All types are generated from the Bluesky protocol schema, along with queries and procedures, ensuring everything is statically typed.

Note: This is not an official library and is not affiliated with Bluesky.

Table of Contents

  • Installation
  • Documentation
  • Features
  • Contributing
  • License

Installation

To install Libphpsky, use Composer:

composer require aazsamir/libphpsky

For integration with Laravel, use aazsamir/libphpsky-laravel package:

composer require aazsamir/libphpsky-laravel

For integration with Symfony, use aazsamir/libphpsky-symfony package:

composer require aazsamir/libphpsky-symfony

Documentation

Check docs at https://aazsamir.github.io/libphpsky/.

Usage

The default implementation handles authorization out of the box by providing ATPROTO_LOGIN and ATPROTO_PASSWORD environment variables. If the session is stale, it will automatically refresh it.

$resolveHandle = ResolveHandle::default();
$did = $resolveHandle->query('bsky.app')->did;

$getProfile = GetProfile::default();
$response = $getProfile->query($did);

On top of that, there is a meta client, which can be used to handle all possible endpoints.

$client = new ATProtoMetaClient();
$resolved = $client->comAtprotoIdentityResolveHandle()->query('bsky.app');

Libphpsky also supports \Amp\Http\Client\HttpClient from amphp/http-client package out of the box.

$client = ATProtoClientBuilder::default()->useAsync(true)->build();
$getProfile = new GetProfile($client);
$actors = ['bsky.app', 'steampowered.com'];
$futures = [];

foreach ($actors as $actor) {
    $futures[] = \Amp\async(fn() => $getProfile->query($actor));
}

[$errors, $profiles] = \Amp\Future\awaitAll($futures);

Examples

libphpsky-feed is an example project that uses libphpsky to serve a bluesky feed.

For more examples, check examples directory.

Features

  • Comprehensive interaction with the ATProtocol
  • Statically typed queries, procedures and objects
  • Authorization and automatic session management
  • Query caching
  • Amphp client support
  • Subscriptions over WebSockets
  • Custom lexicons support

Contributing

Contributions are welcome! Just make sure that phpstan, php-cs-fixer and phpunit pass.

License

Libphpsky is licensed under the MIT License. See the LICENSE file for more details.

Topics

atprotoblueskybskyphp

Related SDKs

potibmphluesky

An small PHP library for Bluesky social using the AT Protocol.

37•PHP
williamsdbphp2Bluesky

Helper library to post to Bluesky Social

15•PHP
innocenzibluesky-notification-channel

Bluesky notification channel for the Laravel framework

30•PHP
cjrasmussenBlueskyApi

Simple helper for interacting with the Bluesky API/AT protocol

39•PHP
sbm12bsky-Pack2List

Converting a BlueSky Starter Pack to User List

28•PHP
shahmal1yevblueskysdk

BlueSky SDK is a comprehensive PHP library designed to seamlessly integrate with the BlueSky social network.

30•PHP

Resources

GitHub RepositoryProject Website

License

MIT

Author

aazsamir
aazsamir

Activity

Last commit: October 20, 2025
Commit frequency: Unknown

Our Sponsors

Your Brand Here!

50K+ engaged viewers every month

Limited spots available!

📧 Contact us via email🦋 Contact us on Bluesky
BSkyInfo LogoBskyInfo

The Most Comprehensive Bluesky Tools Directory

Stay updated with the latest Bluesky tools and ecosystem news 🦋

Bluesky butterfly logo
Quick LinksSubmit a ToolSponsorAboutLegal Information
ToolsFeed DirectoryLabeler DirectorySchedulingAnalyticsAll ToolsCategoriesCollectionsTags
ResourcesArticlesBluesky GuidesBluesky GlossaryBluesky SDKsBluesky ResourcesSkyRaffleMeida Coverage
Our ProductsRaffleBlueAiTeach ToolsLaiewAI affiliate listFirstoCoast Fire CalculatorAsphalt CalculatorDog Names World

This website may contain affiliate links

© 2025 BskyInfo. All rights reserved.