This Library is a abstraction for interactions with files
Remote are extensions of the base File Class which are used to other systems.
- Sftp SftpFile.php
composer require ambimax/php-lib-file
Creating of a File Object goes mostly analogous to fopen
1. Argument:
fopen compatible filename
2. Argument:
FileMode Enum
This Enum Cases are the available options of the fopen mode
parameter.
use \Ambimax\File\File;
use \Ambimax\File\FileMode;
// fopenCompatibleFilename FileMode Enum
$file = new File( '/tmp/filename' , FileMode::R );
For additional informations on how use this with files that are not in the local filesystem check the Remotes Documentation.
You can find out more about them here.
Add a list of links to additional documentation in ./docs
.
- Fabian Köhnen, ambimax® GmbH