ambimax / php-lib-file
Installs: 1 490
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Requires
- php: >=8.1
- phpseclib/phpseclib: ^3.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.0
- mikey179/vfsstream: ^1.6
- phpstan/phpstan-symfony: ^1.1
- phpunit/phpunit: ~9.5.2
README
This Library is a abstraction for interactions with files
Remotes
Remote are extensions of the base File Class which are used to other systems.
Implementet Protocols:
- Sftp SftpFile.php
Quick Start
Installation
composer require ambimax/php-lib-file
Basic Usage
Create File Object
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 );
Remotes
For additional informations on how use this with files that are not in the local filesystem check the Remotes Documentation.
Helper scripts
You can find out more about them here.
Addtitional Documentation
Add a list of links to additional documentation in ./docs
.
Author(s)
- Fabian Köhnen, ambimax® GmbH