Download the PHP package danielcoulbourne/verbs-sync without Composer

On this page you can find all versions of the php package danielcoulbourne/verbs-sync. 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 verbs-sync

Verbs Sync

A Laravel package that allows applications using Verbs to sync events from a remote source.

Overview

Verbs Sync is a simple CLI tool that enables a Laravel application using the Verbs package to pull events from another Verbs-powered application. This tool focuses on a straightforward pull-based syncing model where your application acts as the destination, pulling events from a remote source.

Features

Installation

You can install the package via composer:

After installing, publish the configuration file:

Run the migrations:

Quick Setup

  1. Install the package
  2. Publish the configuration
  3. Set your source URL and API token in your .env file
  4. Run the sync command

Configuration

Configuration File

The package's configuration file (config/verbs-sync.php) contains the following settings:

Environment Variables

Configure the package using these environment variables:

Usage

To sync events from the source application:

Options

Examples

Sync all events:

Sync only specific event types:

Sync events since a specific time:

Preview what would be synced:

How It Works

  1. The verbs:sync command makes a request to the source application's Verbs API
  2. It fetches events based on your filters (event types, time range, etc.)
  3. For each event, it:
    • Checks if the event has already been synced (to avoid duplicates)
    • Stores a record of the event in the local database
    • Processes the event through your local Verbs system
  4. Events are marked with synced: true metadata to prevent infinite loops

Database Tables

The package creates two tables:

  1. verbs_sync_events: Tracks synced events with their source, type, and status
  2. verbs_sync_logs: Records sync operations for monitoring and troubleshooting

Integrating with Scheduled Tasks

For regular syncing, you can add the command to your Laravel scheduler:

Testing

This package includes a comprehensive test suite. To run the tests:

Test Coverage

The test suite covers:

Troubleshooting

If you encounter issues with event syncing:

  1. Use the --dry-run option to see what would be synced
  2. Check your Laravel logs for errors
  3. Ensure your API token is configured correctly
  4. Verify network connectivity to the source application
  5. Check that event types are not excluded in configuration

License

This package is open-sourced software licensed under the MIT license.

This package is open-sourced software licensed under the MIT license.


All versions of verbs-sync with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
illuminate/support Version ^8.0|^9.0|^10.0|^11.0
illuminate/console Version ^8.0|^9.0|^10.0|^11.0
guzzlehttp/guzzle Version ^7.0
hirethunk/verbs Version ^0.7.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 danielcoulbourne/verbs-sync contains the following files

Loading the files please wait ...