1. Go to this page and download the library: Download samsonphp/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/ */
samsonphp / fs example snippets
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 = 'samsonphp\fs\AWSFileService';
}
/**@var \samsonphp\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('samsonphp\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.