PHP code example of owenvoke / laravel-xdg
1. Go to this page and download the library: Download owenvoke/laravel-xdg 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/ */
owenvoke / laravel-xdg example snippets
use OwenVoke\LaravelXdg\Xdg;
// Resolving from the app container
app(Xdg::class)->getHomeDirectory();
app('xdg')->getHomeDirectory();
// Using the facade (with, and without the short alias)
\Xdg::getHomeDirectory();
\OwenVoke\LaravelXdg\Facades\Xdg::getHomeDirectory();