PHP code example of yasinkose / file-handler

1. Go to this page and download the library: Download yasinkose/file-handler 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/ */

    

yasinkose / file-handler example snippets


$app->register(YasinKose\FileHandler\ServiceProvider::class);

FileHandler::sendFile($request->allFiles());

FileHandler::addFile($request->allFiles())->sendFile();

$file = new FileHandler();
$file->sendFile($request->allFiles());
script
FILE_HANDLER_URL=https://***.com/
FILE_HANDLER_API_KEY=api_key
FILE_HANDLER_TABLE_NAME=files
bash
php artisan vendor:publish --provider="YasinKose\FileHandler\ServiceProvider"
bootstrap/app.php