PHPackages                             publish-php/atproto-standard-site - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. publish-php/atproto-standard-site

ActiveLibrary

publish-php/atproto-standard-site
=================================

Focused PHP client for standard.site lexicons on the AT Protocol

v1.2.0(today)03↑2900%1MITPHPPHP ^8.3

Since Jul 27Pushed todayCompare

[ Source](https://github.com/publish-php/atproto-standard-site)[ Packagist](https://packagist.org/packages/publish-php/atproto-standard-site)[ RSS](/packages/publish-php-atproto-standard-site/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (4)Versions (4)Used By (1)

atproto-standard-site
=====================

[](#atproto-standard-site)

A focused PHP client for the [standard.site](https://standard.site) lexicons on the AT Protocol.

What this is
------------

[](#what-this-is)

A lightweight library for creating and managing `site.standard.publication` and `site.standard.document` records on an AT Protocol PDS. It handles the seven XRPC endpoints needed for standard.site — nothing more, nothing less.

**Not** a general-purpose AT Protocol SDK. If you need firehose subscriptions, repository sync, or federation, look at [socialweb-php/atproto](https://github.com/socialweb-php/atproto) instead.

Requirements
------------

[](#requirements)

- PHP 8.3+
- Guzzle HTTP client (or any PSR-18 compatible client)

Installation
------------

[](#installation)

```
composer require publish-php/atproto-standard-site
```

Quick start
-----------

[](#quick-start)

```
use PublishPhp\AtprotoStandardSite\Client;
use PublishPhp\AtprotoStandardSite\Model\Publication;
use PublishPhp\AtprotoStandardSite\Service\Record;

// Create a client with your Bluesky app password
$client = new Client(
    identifier: 'yourdomain.com',      // handle or email
    appPassword: 'xxxx-xxxx-xxxx-xxxx', // app password from Bluesky settings
);

// Create the service
$records = new Record($client);

// Create a publication record
$pubUri = $records->createPublication(new Publication(
    url: 'https://yourdomain.com',
    name: 'My Blog',
    description: 'A blog about things.',
));

// Create a document record
use PublishPhp\AtprotoStandardSite\Model\Document;

$docUri = $records->createDocument(new Document(
    site: $pubUri,                        // reference the publication
    title: 'My First Post',
    publishedAt: '2024-01-20T14:30:00.000Z',
    path: '/blog/my-first-post',
    textContent: 'Full text of the article...',
    tags: ['introduction', 'blog'],
));
```

Authentication
--------------

[](#authentication)

This library uses **Bluesky app passwords** for authentication. Generate one at Settings → App Passwords in Bluesky.

App passwords can read and write repository records but **cannot** change account settings, passwords, or enable/disable 2FA. For scope-limited OAuth access (restricted to `site.standard.*` records only), a future version will support [AIP](https://github.com/graze-social/aip) or native AT Protocol OAuth.

API
---

[](#api)

### Client

[](#client)

The XRPC HTTP transport. Authenticates via `com.atproto.server.createSession` and caches the JWT.

### Models

[](#models)

- `Publication` — `site.standard.publication` record
- `Document` — `site.standard.document` record
- `BlobRef` — Blob reference for cover images and icons
- `Color` / `BasicTheme` — Publication theme metadata

### Services

[](#services)

- `Record` — Create, update, delete, and fetch records
- `Blob` — Upload binary blobs (cover images, icons)
- `Identity` — Resolve handles to DIDs

License
-------

[](#license)

MIT

###  Health Score

43

—

FairBetter than 89% of packages

Maintenance100

Actively maintained with recent releases

Popularity4

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 66.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

3

Last Release

0d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/20505284?v=4)[Chazona Baum](/maintainers/chznbaum)[@chznbaum](https://github.com/chznbaum)

---

Top Contributors

[![publish-php-hermes[bot]](https://avatars.githubusercontent.com/in/4402876?v=4)](https://github.com/publish-php-hermes[bot] "publish-php-hermes[bot] (2 commits)")[![chznbaum](https://avatars.githubusercontent.com/u/20505284?v=4)](https://github.com/chznbaum "chznbaum (1 commits)")

---

Tags

blueskyatprotostandard-sitesite.standard

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/publish-php-atproto-standard-site/health.svg)

```
[![Health](https://phpackages.com/badges/publish-php-atproto-standard-site/health.svg)](https://phpackages.com/packages/publish-php-atproto-standard-site)
```

###  Alternatives

[laravel/framework

The Laravel Framework.

34.8k543.8M20.6k](/packages/laravel-framework)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k16](/packages/tempest-framework)[drupal/core

Drupal is an open source content management platform powering millions of websites and applications.

19566.0M1.8k](/packages/drupal-core)[drupal/core-recommended

Locked core dependencies; require this project INSTEAD OF drupal/core.

6942.5M425](/packages/drupal-core-recommended)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

751291.4k47](/packages/civicrm-civicrm-core)[avalara/avataxclient

Client library for Avalara's AvaTax suite of business tax calculation and processing services. Uses the REST v2 API.

528.5M7](/packages/avalara-avataxclient)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
