PHP code example of wyrihaximus / file-descriptors

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

    

wyrihaximus / file-descriptors example snippets


use WyriHaximus\FileDescriptors\Factory;
use WyriHaximus\FileDescriptors\ListerInterface;

/** @var ListerInterface */
$lister = Factory::create();
$fileDescriptors = $lister->list(); // Returns an iterable containing a list of open file descriptors for the current process