PHP code example of takuya / php-plocate-wrapper
1. Go to this page and download the library: Download takuya/php-plocate-wrapper 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/ */
takuya / php-plocate-wrapper example snippets
$locate = new LocateWrap();
$ret = $locate->search('composer.json');
foreach ($ret as $item) {
var_dump($item);
}
$builder = new LocateDbBuilder('~/.Document.db','~/Document');
$builder->build();
$locate = new LocateWrap('~/.Document.db');
$found = $locate->search('.docx');
shell
composer