PHP code example of ozdemir / vuefinder-php

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

    

ozdemir / vuefinder-php example snippets




use Ozdemir\VueFinder\Vuefinder;
use League\Flysystem\Local\LocalFilesystemAdapter;

// Set VueFinder class
$vuefinder = new VueFinder([
    'local' => new LocalFilesystemAdapter(dirname(__DIR__).'/storage'),
    'test' =>  new LocalFilesystemAdapter(dirname(__DIR__).'/test'),
]);


$config = [
    'publicLinks' => [
        'local://public' => 'http://example.test',
    ],
];

// Perform the class
$vuefinder->init($config);

composer