Download the PHP package ringlesoft/db-archive without Composer

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

Laravel DB Archive

Easily archive your Laravel database tables periodically to keep your application database lean and performant.


Latest Version on Packagist Total Downloads PHP Version Require Dependents


Introduction

Laravel DB Archive is a package that provides a simple and efficient way to archive old records from your database tables in Laravel applications. It helps maintain your application's database performance by moving historical data to archive tables, while keeping your primary tables focused on recent and relevant information.

Laravel 10.x and above

Installation

You can install the package via composer:

Configuration

Publish the configuration file with:

Configuration Options:

connection:

settings:

enable_logging:

notifications:

tables:

Setting Up

To setup the package, run the following command:

This will create the backup database and tables if not already present.

Queueing and Batching

Jobs Table

Batches table

Usage

Artisan Command

Run the archive command to process tables defined in your configuration:

This command will:

Scheduling

To automate the archiving process, schedule the db-archive:archive command in your Kernel.php file:

// app/Console/Kernel.php

Adjust the scheduling as per your requirements (e.g., daily, weekly, monthly).

Examples

Basic Usage

(Archive orders table with default settings)

// config/db-archive.php

This configuration will archive records from the users table in your default connection that are older than 365 days (based on the created_at column) to users table in the mysql_archive connection.

Custom Settings

// config/db-archive.php

This configuration will archive records from the orders table that are older than 90 days (based on the order_date column), processed in batches of 5000, and only for orders with a status of 'completed'.

Enjoy!


Contributing

Contributions are welcome! Please feel free to submit pull requests or open issues to suggest improvements or report bugs.

License

The Laravel DB Archive package is open-sourced software licensed under the MIT license.

Support

Contacts

Follow me on X: @ringunger
Email me: [email protected]
Website: https://ringlesoft.com


All versions of db-archive with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
illuminate/support Version ^9|^10|^11|^12
illuminate/collections Version ^9|^10|^11|^12
illuminate/database Version ^9|^10|^11|^12
illuminate/bus Version ^9|^10|^11|^12
illuminate/queue Version ^9|^10|^11|^12
illuminate/notifications Version ^9|^10|^11|^12
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 ringlesoft/db-archive contains the following files

Loading the files please wait ....