mr-wolf-gb/laravel-update-creator

Laravel Update Creator is a Laravel package designed to streamline the process of creating update ZIP files for your Laravel projects. This tool identifies all files modified since a specified date, excludes unwanted directories and files, and generates a compressed ZIP file for distribution or depl

v1.0.1 2024-12-11 14:29 UTC

This package is auto-updated.

Last update: 2025-02-12 08:14:43 UTC


README

Latest Version on Packagist Total Downloads

Laravel Update Creator is a Laravel package designed to streamline the process of creating update ZIP files for your Laravel projects. This tool identifies all files modified since a specified date, excludes unwanted directories and files, and generates a compressed ZIP file for distribution or deployment.

Features

  • Customizable Date Range : Specify a start date to include files modified after that point.
  • Version Control : Add version numbers to the generated updates for better tracking.
  • Exclude Directories : Automatically excludes common directories like vendor, node_modules, and others.
  • Temporary Cleanup : Ensures the temporary directories used during the process are cleaned up after ZIP creation.
  • Simple Configuration : Easily configure excluded directories and default behaviors via a configuration file.

Installation

  • Add the package to your Laravel project via Composer:
composer require mr-wolf-gb/laravel-update-creator
  • Publish the configuration file (Optional):
php artisan vendor:publish --tag=config --provider="MrWolfGb\LaravelUpdateCreator\LaravelUpdateCreatorServiceProvider"

Usage

// specify the date since the modified files to copy them into the update pack
php artisan update:create --d="2024-01-01" --v="1.2.0"
// or
php artisan update:create --d 2024-01-01 --v 1.2.0

//by default after creating the update zip file the copied temporary files will be deleted, to disable the deletion of temporary files use:
php artisan update:create --d="2024-01-01" --v="1.2.0" --c="false"
// or
php artisan update:create --d 2024-01-01 --v 1.2.0 --c false

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email gaiththewolf@gmail.com instead of using the issue tracker.

Credits

License

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