1. Go to this page and download the library: Download loilo/find-up 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/ */
loilo / find-up example snippets
use Loilo\FindUp\Up;
// Get the project's composer.json's path by
// walking up from /var/www/project/src/foo
Up::find('composer.json') === '/var/www/project/composer.json';
// Start from the current working directory
Up::find('composer.json', getcwd());