Download the PHP package socialdept/atp-parity without Composer

On this page you can find all versions of the php package socialdept/atp-parity. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package atp-parity

Bidirectional mapping between AT Protocol records and Laravel Eloquent models.



What is Parity?

Parity is a Laravel package that bridges your Eloquent models with AT Protocol records. It provides bidirectional mapping, automatic firehose synchronization, and type-safe transformations between your database and the decentralized social web.

Think of it as Laravel's model casts, but for AT Protocol records.

Why use Parity?

Quick Example

Installation

Optionally publish the configuration:

Getting Started

Once installed, you're three steps away from syncing AT Protocol records:

1. Create a Mapper

Define how your record maps to your model:

2. Register Your Mapper

3. Add the Trait to Your Model

Your model can now convert to/from AT Protocol records and query by URI.

What can you build?

Ecosystem Integration

Parity is designed to work seamlessly with the other atp-* packages:

Package Integration
atp-schema Records extend Data, use generated DTOs directly
atp-client RecordHelper for fetching and hydrating records
atp-signals ParitySignal for automatic firehose sync

Using with atp-schema

Use generated schema classes directly with SchemaMapper:

Using with atp-client

Fetch records by URI and convert directly to models:

The helper automatically resolves the DID to find the correct PDS endpoint, so it works with any AT Protocol server - not just Bluesky.

Using with atp-signals

Enable automatic firehose synchronization by registering the ParitySignal:

Run php artisan signal:consume and your models will automatically sync with matching firehose events.

Importing Historical Data

For existing records created before you started consuming the firehose:

Or programmatically:

Documentation

For detailed documentation on specific topics:

Model Traits

HasAtpRecord

Add AT Protocol awareness to your models:

Available methods:

SyncsWithAtp

Extended trait for bidirectional sync tracking:

Additional methods:

HasAtpBlobs

Add blob handling to models with images or other binary content:

Available methods:

See Blob Handling for complete documentation including MediaLibrary integration.

AutoSyncsWithAtp

Automatically sync models with AT Protocol on create, update, and delete:

When enabled, the model automatically syncs:

Failed syncs due to expired OAuth sessions can be captured and retried after re-authentication. See Automatic Syncing for complete documentation including pending sync configuration.

Database Migration

Add AT Protocol columns to your models:

Publish and run Parity's core migration:

Optional migrations are published separately based on which features you use:

Configuration

Creating Custom Records

Extend the Record base class for custom AT Protocol records:

The Record class extends atp-schema's Data and implements atp-client's Recordable interface, ensuring full compatibility with the ecosystem.

Requirements

Testing

Resources

Support & Contributing

Found a bug or have a feature request? Open an issue.

Want to contribute? Check out the contribution guidelines.

Changelog

Please see changelog for recent changes.

Credits

License

Parity is open-source software licensed under the MIT license.


Built for the Atmosphere - By Social Dept.


All versions of atp-parity with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
illuminate/support Version ^11.0|^12.0|^13.0
illuminate/database Version ^11.0|^12.0|^13.0
socialdept/atp-schema Version ^0.4
socialdept/atp-client Version ^0.1 || ^0.2 || ^0.3
socialdept/atp-support Version ^0.3
socialdept/atp-signals Version ^2.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package socialdept/atp-parity contains the following files

Loading the files please wait ...