atproto/atproto
Composer 安装命令:
composer require atproto/atproto
包简介
Bluesky API Client for AT Protocol
README 文档
README
Warning
This project is not finished yet, work in progress.
Installation
You can install the package via composer:
composer require ghostwriter/atprotocol
Usage
Auth
Info
Use app passwords to securely login to Bluesky without giving full access to your account or password. https://bsky.app/settings/app-passwords
$bsky = new Bluesky(personalDataServer: 'https://bsky.social'); // create a new account on the server $sessionData = $bsky->createAccount( email: 'nathanael.esayeas@protonmail.com', handle: 'codepoet.bsky.social', password: '************' inviteCode: 'black-lives-matter', ); // if an existing session (accessed with 'bsky.session') was securely stored previously, then reuse that $bsky->resumeSession(session: $sessionData); // if no old session was available, create a new one by logging in with password (App Password) $sessionData = $bsky->login( identifier: 'codepoet.bsky.social', password: '************' ); $bsky->post(text: 'My first post using ghostwriter/atprotocol for PHP.'); // Feeds and content $bsky->getTimeline($params,$opts) $bsky->getAuthorFeed($params,$opts) $bsky->getPostThread($params,$opts) $bsky->getPost($params) $bsky->getPosts($params,$opts) $bsky->getLikes($params,$opts) $bsky->getRepostedBy($params,$opts) $bsky->post($record) $bsky->deletePost($postUri) $bsky->like($uri, cid) $bsky->deleteLike($likeUri) $bsky->repost($uri, cid) $bsky->deleteRepost($repostUri) $bsky->uploadBlob($data,$opts) // Social graph $bsky->getFollows($params,$opts) $bsky->getFollowers($params,$opts) $bsky->follow($did) $bsky->deleteFollow($followUri) // Actors $bsky->getProfile($params,$opts) $bsky->upsertProfile($updateFn) $bsky->getProfiles($params,$opts) $bsky->getSuggestions($params,$opts) $bsky->searchActors($params,$opts) $bsky->mute($did) $bsky->unmute($did) $bsky->muteModList($listUri) $bsky->unmuteModList($listUri) $bsky->blockModList($listUri) $bsky->unblockModList($listUri) // Notifications $bsky->listNotifications($params,$opts) $bsky->countUnreadNotifications($params,$opts) $bsky->updateSeenNotifications() // Identity $bsky->resolveHandle($params,$opts) $bsky->updateHandle($params,$opts) // Session management $bsky->createAccount($params) $bsky->login($params) $bsky->resumeSession($session) // Excepions // { "name": "InvalidHandle" }, // { "name": "InvalidPassword" }, // { "name": "InvalidInviteCode" }, // { "name": "HandleNotAvailable" }, // { "name": "UnsupportedDomain" }, // { "name": "UnresolvableDid" }, // { "name": "IncompatibleDidDoc" } // TODO: extract the headers from the lexicon objects
Changelog
Please see CHANGELOG.md for more information on what has changed recently.
Security
If you discover any security-related issues, please use Security Advisories instead of using the issue tracker.
Credits
License
The BSD-3-Clause. Please see License File for more information.
atproto/atproto 适用场景与选型建议
atproto/atproto 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 13 次下载、GitHub Stars 达 5, 最近一次更新时间为 2025 年 03 月 20 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「ghostwriter」 「atp」 「atproto」 「bluesky」 「atprotocol」 「bsky」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 atproto/atproto 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 atproto/atproto 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 atproto/atproto 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Provides Environment Variables derived from `$_ENV` and `$_SERVER` super-globals
Additional assertions for PHPUnit
Provides a framework for testing Psalm plugins
HTTP Client and Server abstraction for PHP.
PHP code formatter
An small PHP library for posting messages to the bluesky social network using the AT Protocol.
统计信息
- 总下载量: 13
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 29
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2025-03-20