1. Go to this page and download the library: Download restoore/therefore 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/ */
public function getFullPath() //Get full server path
public function getFileNameWithoutExtension() //Get filename without his extension
public function getExtension() //Only get the extension
public function deleteFromServer() //Delete file from web server
public function getUrl() //Return full link of your file
public function getSizeAttribute($value) //Return formatted size of your file like "16.5 Mo" or "500 ko"
public function getThumbnailUrl() //Return thumbnail url and if thumbnail doesn t exist create him
public function deleteThumbnail() //Delete thumbnail from web server