Download the PHP package watheqalshowaiter/backup-tables without Composer

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

Backup Tables

Required Laravel Version Required PHP Version Latest Version on Packagist GitHub Tests For Laravel Versions Action Status GitHub Tests For Databases Action Status GitHub Code Style Action Status Total Downloads GitHub Stars StandWithPalestine

Backup single or multiple database tables with ease.

[!NOTE] If you want a full database backup with many features, go for Spatie Laravel Backup.

Installation

You can install the package via Composer:

Usage

Use the BackupTables::generateBackup($tableToBackup) Facade anywhere in your application and it will generate $tableToBackup_backup_2024_08_22_17_40_01 table in the database with all the data and structure. Note that the datetime 2024_08_22_17_40_01 will be varied based on your datetime.

You can also use the php artisan backup:tables <targets> command to back up tables, where <targets> is a space-separated list of table names or models.

And More Customizations

[!WARNING] When customizing the datetime format, be aware that backups with identical datetime values will be skipped. For example, if you use this Y_d_m_H you cannot generate the same backup in the same hour. The default format (Y_m_d_H_i_s) is recommended for most cases.

Why?

Sometimes you want to back up some database tables before changing data for whatever reason, this package serves this need.

I used it personally before adding foreign keys to tables that required removing unlinked fields from parent tables.

You may find some situation where you play with table data, or you're afraid of missing data, so you back up these tables beforehand.

Features

✅ Backup tables from the code using (Facade) or from the console command.

✅ Supports Laravel versions: 12, 11, 10, 9, 8, 7, and 6.

✅ Supports PHP versions: 8.4, 8.3, 8.2, 8.1, 8.0, and 7.4.

✅ Supports SQL databases: SQLite, MySQL/MariaDB, PostgreSQL, and SQL Server.

✅ Fully automated tested with PHPUnit.

✅ Full GitHub Action CI pipeline to format code and test against all Laravel and PHP versions.

Testing

Changelog

Please see CHANGELOG for more information on recent changes.

Contributing

If you have any ideas or suggestions to improve it or fix bugs, your contribution is welcome.

I encourage you to look at issues which are the most important features that need to be added.

If you have something different, submit an issue first to discuss or report a bug, then do a pull request.

Security Vulnerabilities

If you find any security vulnerabilities don't hesitate to contact me at watheqalshowaiter[at]gmail[dot]com to fix them.

Credits

And a special thanks to The King Creative for the logo ✨

License

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


All versions of backup-tables with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
illuminate/contracts Version ^12.0||^11.0||^10.0||^9.0||^8.0||^7.0||^6.0||^5.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 watheqalshowaiter/backup-tables contains the following files

Loading the files please wait ....