1. Go to this page and download the library: Download samsonos/php_fs 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/ */
samsonos / php_fs example snippets
_fs_local
_fs_aws
class FileServiceConfig extends \samson\core\Config
{
/**@var string Configured module/service identifier */
public $__id = 'fs';
/**@var string Set Amazon Web Services as web-application file service using its identifier */
public $fileServiceID = 'samson\fs\AWSFileService';
}
/**@var \samson\fs\FileService $fs Pointer to file service */
$fs = & m('fs');
_fs_local
if (!$fs->exists(...)) {
$fs->write(...);
}
// Create instance
$this->fileService = new FileService(__DIR__.'../');
// Get instance using services factory as error will signal other way
$this->fileService = \samson\core\Service::getInstance('samson\fs\FileService');
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.