PHP code example of keltron / filehelper
1. Go to this page and download the library: Download keltron/filehelper 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/ */
keltron / filehelper example snippets
files/file_helper_dashboard
bash
php artisan vendor:publish --tag=filehelper.config
bash
php artisan vendor:publish --provider="Keltron\Filehelper\FilehelperServiceProvider"
bash
php artisan vendor:publish --provider="Keltron\Filehelper\FilehelperServiceProvider" --tag="migrations"
bash
php artisan migrate --path=database/migrations/2021_09_13_055730_create_filehelper_table.php
php
public static function putFile(
$folder,
$file,
$file_name = '',
$file_types = ['image', 'pdf', 'doc'],
$max_file_size = 0
) { }
php
public static function getFile($encrypted_file_id, $get_type = 0) { }
php
public static function getFileFromPath($encrypted_file_path, $get_type = 0) { }
php
public static function getFileTypeImageFromId($encryptedFileId) { }
php
public static function getFileTypeImageFromPath($encryptedFilePath) { }
php
public static function getFileUrl($encrypted_file_path) { }
php
public static function getFileInfo($encrypted_file_id) { }
java
@param string $encrypted_file_id — The encrypted file id.
@return array — [ 'status' => true/false, ]
php
public static function getFileBinary($encrypted_file_id) { }
php
public static function deleteFile($encrypted_file_id) { }
java
@param string $encrypted_file_id — The encrypted file id.
@return array — [ 'status' => true/false, ]