pushinbr/pam-native-laravel-sync

Production Laravel server protocol and PAM Native transport adapter for offline sync.

Maintainers

Package info

github.com/push-in/pam-native-laravel-sync

Type:pam-native-plugin

pkg:composer/pushinbr/pam-native-laravel-sync

Transparency log

Statistics

Installs: 0

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v0.1.1 2026-08-01 04:08 UTC

This package is auto-updated.

Last update: 2026-08-01 06:05:11 UTC


README

The production Laravel counterpart for pushinbr/pam-native-sync: authenticated incremental pulls, idempotent mutation ingestion, HMAC-signed cursors, conflict responses, collection registration, retention boundaries, and a PAM Native transport adapter.

composer require pushinbr/pam-native-laravel-sync
php artisan vendor:publish --tag=pam-native-sync-config
php artisan migrate
// AppServiceProvider.php
$registry->register('notes', new NotesSyncHandler());
// Mobile application
$engine = new SyncEngine($store, new LaravelSyncTransport($http, $baseUrl));
$engine->synchronize(fn (SyncReport $report) => updateSyncStatus($report));

Publish config/pam-native-sync.php, protect the supplied routes with your authentication middleware, register an explicit handler for every synchronized collection, and keep the HMAC key stable across deploys. Cursor payloads are signed and bounded but are not encrypted; never place secrets inside cursor state.

Laravel 12 and 13 are supported. The integration suite boots a real Testbench application and verifies push idempotency, pull cursors, validation, resources, and conflict flow.