Download the PHP package bakgul/file-history without Composer
On this page you can find all versions of the php package bakgul/file-history. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download bakgul/file-history
More information about bakgul/file-history
Files in bakgul/file-history
Package file-history
Short Description This is a helper package, and it can't be used independently. Its purpose is to log the changes of files when they are created/deleted/updated through the commands shipped with the packages, which are part of Packagified Laravel. So this package can't track the changes made manually.
License MIT
Informations about the package file-history
File History
This is a helper package, to keep/undo/redo file history when files are created/deleted/updated via console commands of my other packages.
That being said, I don't see any reason not be able to use it outside console independantely. But I've never tried it.
Installation
Optionally, you can publish package's config file
Commands
This package contains 3 console commands. They are quite self-explanatory and don't expect any arguments or options.
Usage
First, you should use HasHistory
trait on command file and call $this->logFile();
in handle()
method. This will generate a history file to use during current command's lifecycle.
Then you should execute the following code before you create/update/delete a file/folder:
License
This is open-sourced software licensed under the MIT license.
All versions of file-history with dependencies
bakgul/kernel Version ^4.0
bakgul/file-content Version ^4.0
bakgul/laravel-helpers Version ^1.0