Download the PHP package onlyphp/codeigniter3-housekeeping without Composer

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

🗄️ CodeIgniter 3 Database Archiver

Latest Version on Packagist Total Downloads

A powerful and flexible database archiving solution for CodeIgniter 3 applications. This package helps you manage database growth by providing tools to archive and purge data while maintaining data integrity.

⚠️ Warning

DO NOT USE THIS PACKAGE IN PRODUCTION

This package is under active development and may contain critical bugs. It is primarily intended for personal use and testing. The current version has not undergone rigorous testing and may be unstable.

🚀 Features

💻 Requirements

📦 Installation

Via Composer

Manual Installation

  1. Download the package
  2. Extract to your application/libraries folder
  3. Add to your autoload.php:

🎓 Basic Concepts

Operation Modes

Processing Methods

🎯 Usage Examples

Example 1: Basic Backup Operation

Archive records older than 6 months from the 'orders' table:

Example 2: Backup and Purge with Unique Constraints

Archive and delete completed orders while ensuring no duplicate order numbers:

Example 3: Parallel Processing with Custom Archive Table

Archive large datasets using parallel processing:

Example 4: Oracle Database with Debug Mode

Archive data from an Oracle database with debug logging:

Example 5: Purge-Only Operation with Memory Management

Delete old log entries without backing them up:

Example 6: Interactive Archiving Process with Progress Monitoring

This example shows a complete archiving process with real-time progress monitoring and verification:

⚙️ Configuration Options

Method Description
driver(string) Set database driver ('mysql' or 'oci')
backupFrom(string) Set source table name
backupTo(string) Set custom archive table name
primaryKey(string) Set primary key column
condition(string) Set WHERE clause for record selection
mode(string) Set operation mode ('BO', 'PO', or 'BP')
chunk(int) Set chunk size (100-50000)
parallel(int) Set number of parallel threads (1-16)
uniqueColumns(array) Set columns that should be unique in archive
sqlHint(string) Set SQL optimization hint
logPath(string) Set custom log file path
onDebug() Enable debug mode

🔍 Monitoring and Verification

The package provides methods to monitor and verify the archiving process:

⚠️ Important Notes

  1. Always backup your database before running archiving operations
  2. Test the archiving process on a subset of data first
  3. Monitor system resources during parallel processing
  4. Consider database load and peak hours when scheduling archiving tasks
  5. Verify archive integrity after completion

📄 License

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


All versions of codeigniter3-housekeeping with dependencies

PHP Build Version
Package Version
Requires php Version >=8.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 onlyphp/codeigniter3-housekeeping contains the following files

Loading the files please wait ...