appdigidelete/account-deletion

A Composer package that simplifies account deletion by providing a pre-built form to delete users via email, automating the entire process for developers

v1.0.0 2024-12-03 04:20 UTC

This package is not auto-updated.

Last update: 2025-03-12 13:06:48 UTC


README

A Composer package that simplifies account deletion by providing a pre-built form to delete users via email, automating the process for developers.

Packagist Version
Packagist Downloads
GitHub License

Table of Contents

Requirements

  • PHP >= 8.0
  • Laravel 8, 9, or 10

Installation

Run the following command to install the package:

composer require appdigidelete/account-deletion

Configuration

Database Configuration

Ensure your database is configured correctly in your .env file:

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=your_database
DB_USERNAME=your_username
DB_PASSWORD=your_password

Add the following keys for user tables:

'user_table' => env('USER_TABLE', 'existing_users'),
'deleted_users_table' => env('DELETED_USERS_TABLE', 'deleted_users'),

Update SMTP Settings

Modify your .env file to include your SMTP credentials:

MAIL_MAILER=smtp
MAIL_HOST=smtp.yourservice.com
MAIL_PORT=587
MAIL_USERNAME=your_email@domain.com
MAIL_PASSWORD=your_password
MAIL_ENCRYPTION=tls
MAIL_FROM_ADDRESS=your_email@domain.com

Important: Clear the configuration cache:

php artisan config:clear
php artisan view:clear

Configure the Queue

Ensure you have set up the queue configuration in config/queue.php. For the database driver, run the migration to create the jobs table:

php artisan queue:table
php artisan migrate

Usage

This package relies on the following Laravel components:

  • illuminate/support for Laravel framework integration
  • illuminate/mail for email functionality

Database Setup

Ensure your database has the required tables:

  • Existing Users Table: Default existing_users
  • Deleted Users Table: Default deleted_users

If the package includes migrations, publish and run them:

php artisan migrate

When a user is deleted, all their data will be transferred to the deleted_users table.

License

This package is released under the MIT License. Refer to the LICENSE file for details.

Support

For support or more details, reach out at:

Email: it@digimantra.com

This version improves readability, fixes formatting issues, and provides a clear structure for users to understand and implement the package.