Skip to content

ambimax/php-lib-file

Repository files navigation

Ambimax PhpLibrary File

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)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages