Download the PHP package mrbohem/larasync without Composer

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

Larasync โ€“ Laravel Database Sync with UI Dashboard

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

Larasync is a Laravel package that lets you compare and sync data between two databases through a beautiful Livewire-powered web dashboard. Connect any combination of SQLite, MySQL, or PostgreSQL databases, see a side-by-side row-count comparison for every table, and sync individual tables or all tables at once โ€” right from your browser.


โœจ Features


๐Ÿ“‹ Requirements


๐Ÿš€ Installation

1. Install the package via Composer

2. (Optional) Publish the config file

This creates config/larasync.php where you configure your two database connections and ignored tables.

3. (Optional) Publish the views

If you want to customize the dashboard UI:


โš™๏ธ Configuration

After publishing, open config/larasync.php and configure your two databases. You can set values directly or use .env variables:

Config File

.env Example

Note: For SQLite, the database value is resolved relative to Laravel's database_path() (i.e. the database/ directory).


๐Ÿ–ฅ๏ธ Usage

Access the Dashboard

Once installed, visit the sync dashboard in your browser:

The route is automatically registered by the package at /sync-db.

Dashboard Workflow

  1. Configure connections โ€” Enter or verify the credentials for DB1 and DB2 (pre-filled from config)
  2. Test connections โ€” Click the test button for each database to verify connectivity
  3. Compare โ€” Hit "Compare" to see a table-by-table row-count comparison
  4. Choose sync direction โ€” Select DB1 โ†’ DB2 or DB2 โ†’ DB1
  5. Sync โ€” Sync individual tables with one click, or use "Sync All" to sync every table sequentially

Supported Drivers

Driver Value Notes
SQLite sqlite Always treated as Local
MySQL mysql Local or Cloud auto-detected
PostgreSQL pgsql Local or Cloud auto-detected

Ignoring Tables

Add table names to the ignored_tables array in config/larasync.php to exclude them from comparison and sync:


โš ๏ธ Important Notes


๐Ÿ”’ Protecting the Dashboard

The /sync-db route uses only the web middleware by default. In production, you should protect it with authentication. You can do this by adding middleware in your app's route service provider or by overriding the package route:


๐Ÿงช Testing


๐Ÿ‘ค Credits

๐Ÿ“„ License

The MIT License (MIT). Please see License File for more information.


All versions of larasync with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
illuminate/contracts Version ^11.0||^12.0
livewire/livewire Version ^3.6
spatie/laravel-package-tools Version ^1.16
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 mrbohem/larasync contains the following files

Loading the files please wait ...