Download the PHP package andreagroferreira/laravel-sync-tracker without Composer
On this page you can find all versions of the php package andreagroferreira/laravel-sync-tracker. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package laravel-sync-tracker
Laravel Sync Tracker
A powerful Laravel package for tracking entity synchronization status between systems. Easily manage data synchronization between your Laravel application and external services like CRMs, ERPs, or any third-party API.
Features
- 🔄 Track sync status of any Eloquent model with external systems
- 🔍 Find models by external ID from various sources
- 🕒 Track timestamps for creation, update, and deletion events
- 🧩 Support for multiple sync sources within the same application
- 📊 Store metadata about sync operations for audit trails
- 🛠️ Highly configurable to suit your specific needs
- 🔌 Easy integration with existing Laravel applications
Table of Contents
- Installation
- Configuration
- Basic Usage
- Advanced Usage
- Real-world Examples
- Events
- Custom Implementations
- Testing
- Changelog
- Contributing
- Security
- Credits
- License
Installation
You can install the package via composer:
Configuration
Publish the configuration and migrations:
Then run the migrations:
The published configuration file (config/sync-tracker.php
) allows you to customize how sync tracking works:
Basic Usage
Using the Trait
Add the HasSyncTracking
trait to your model:
Then you can use the methods provided by the trait:
Using the Facade
Advanced Usage
Sync Multiple Source Systems
Track entities that exist in multiple external systems:
Batch Synchronization with Progress Tracking
When syncing multiple entities in a batch job:
Handling Failed Syncs
Track failed synchronization attempts:
Tracking Bi-directional Syncs
Track changes from both your system and external systems:
Query Scopes for Sync Status
Define query scopes on your models for easy filtering:
Real-world Examples
E-commerce Platform Integration
CRM Integration with Conflict Resolution
Syncing Data with Legacy Systems through ETL Processes
Events
This package dispatches Laravel events that you can listen for in your application:
Then create listeners to handle these events:
Custom Implementations
Creating a Custom Synchronization Manager
Implement a REST API for External Systems to Check Sync Status
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- Andre Agro Ferreira
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-sync-tracker with dependencies
illuminate/support Version ^8.0|^9.0|^10.0|^11.0|^12.0
illuminate/database Version ^8.0|^9.0|^10.0|^11.0|^12.0