PHP code example of phore / filesystem

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

    

phore / filesystem example snippets


echo phore_uri("/tmp/some.file")->withDirName();

echo phore_uri("/tmp")->withSubPath("./some/other/file")

phore_uri("/tmp")->assertIsFile()->assertIsWritable();

phore_uri("/tmp/somefile.yml")->assertFile()->get_yaml();

$file = new PhoreTempFile();