PHP code example of bakgul / file-history
1. Go to this page and download the library: Download bakgul/file-history library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
bakgul / file-history example snippets
use Bakgul\FileHistory\FileHistory;
FileHistory::set(
path: 'path to file',
isDir: true/false,
isCreated: true/false
);