PHP code example of oddity-agency / laravel-filesystem-adapter
1. Go to this page and download the library: Download oddity-agency/laravel-filesystem-adapter 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/ */
oddity-agency / laravel-filesystem-adapter example snippets
namespace Filesystem\Interfaces;
use Symfony\Component\HttpFoundation\File\UploadedFile;
/**
* Interface FileSystemInterface
* @package App\Interfaces
*/
interface FileSystemInterface
{
/**
* @param $file
* @return mixed
*/
public function checkIfFileExists($file);
/**
* @param $path
* @return mixed
*/
public function browse($path);
/**
* @param UploadedFile $file
* @param $path
* @return mixed
*/
public function put(UploadedFile $file, $path);
/**
* @param $fileName
* @param $download
* @return mixed
*/
public function get($fileName, $download);
/**
* @param $fileName
* @return mixed
*/
public function delete($fileName);
}
public function get($fileName, $download);
public function put(UploadedFile $file, $path);