ambimax/php-lib-file

There is no license information available for the latest version (2.1.2) of this package.

2.1.2 2023-12-22 15:09 UTC

This package is not auto-updated.

Last update: 2024-05-03 12:55:29 UTC


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:

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 modeparameter.

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)