PHP code example of ibox / uploader

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

    

ibox / uploader example snippets




use Ibox\Uploader\Uploader;
class ImagesController extends Controller 
{

	public function store(Request $request, Uploader $uploader)
    {
        $path = 'some/path';
        $imageNames = $uploader->upload($request->file(), $path);
    }

}