PHP code example of apady / bfs-php-sdk
1. Go to this page and download the library: Download apady/bfs-php-sdk 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/ */
apady / bfs-php-sdk example snippets
use BFS\FileSystem;
use BFS\Exception\IOExceptionInterface;
try{
$bfs=new FileSystem('/home/bfs/sandbox/bfs.flag');
$bfs->mkdir("/test");
$bfs->fopen("/test/apady.txt","w");
$bfs->fwrite("hello apady!!\n");
$bfs->fclose();
}catch(IOExceptionInterface $exception){
echo $exception->getMessage();
}
composer
composer