Download the PHP package dibakar/db-sync without Composer

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

Laravel DB Sync

Latest Version on Packagist Total Downloads License PHP Version Laravel Version

A powerful Laravel package for database synchronization, migration, and SQL file import operations. This package provides a unified interface to manage your database schema and data across different environments with ease and confidence.

✨ Features

🚀 Installation

Requirements

Install via Composer

Configuration (Optional)

Publish the configuration file to customize the package behavior:

This will create a db-sync.php file in your config directory with sensible defaults.

📦 Version Compatibility

Laravel PHP Package
11.x 8.2+ ^1.0
10.x 8.2+ ^1.0
9.x 8.1+ ^1.0

🚀 Quick Start

Basic Usage

Run database synchronization with default settings:

Common Examples

📚 Documentation

Available Commands

Basic Command Structure

Command Options

Option Description Type Default
--path Path to a migration file, SQL file, or directory string null
--mode Operation mode (see Modes section below) string import
--database Database connection to use string config('database.default')
--force Skip production confirmation flag false
--step Show progress for each operation flag false
--seed Run seeders after migration/import flag false
--no-interaction Disable interactive prompts flag false

Operation Modes

Mode Description Use Case
import Import SQL files without running migrations Initial data import, data migration
import-fresh Drop all tables and import SQL files Fresh installation, complete database reset
import-append Append SQL to existing database Data updates, incremental imports
migrate Run database migrations Standard migration updates
migrate-fresh Drop all tables and run migrations Complete database refresh
migrate-refresh Rollback and re-run all migrations Development environment updates

Configuration

After publishing the configuration file, you can customize the package behavior:

🛠 Advanced Usage

Using in Code

You can also use the package directly in your code:

🔒 Security

Best Practices

  1. Always test database operations in a development environment first
  2. Always take backups before running destructive operations
  3. Use the --force flag with extreme caution in production
  4. For large databases, use --step to monitor progress
  5. Review SQL files from untrusted sources before importing
  6. Use database transactions when possible

Reporting Security Issues

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

🤝 Contributing

Thank you for considering contributing to Laravel DB Sync! The contribution guide can be found in the CONTRIBUTING.md file.

Code of Conduct

In order to ensure that the Laravel community is welcoming to all, please review and abide by the Code of Conduct.

Testing

📄 License

Laravel DB Sync is open-sourced software licensed under the MIT license.

✨ Credits

🔗 Useful Links


All versions of db-sync with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
illuminate/support Version ^9.0 || ^10.0 || ^11.0 || ^12.0
illuminate/console Version ^9.0 || ^10.0 || ^11.0 || ^12.0
illuminate/database Version ^9.0 || ^10.0 || ^11.0 || ^12.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 dibakar/db-sync contains the following files

Loading the files please wait ...