Download the PHP package lazarusphp/openhandler without Composer

On this page you can find all versions of the php package lazarusphp/openhandler. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package openhandler

OpenFileHandler

Version Information Build version : v1.0.0 Date Of Build : 31/12/2025

Index

1 What is OpenHandler

2 Open FileHandler Permissions Manager

3 Usage

4 Helpers

What is OpenHandler

Open Handler (OH) is a standalone File and Directory Handling Library, OFH is designed to control and comminicate with the Server file structure, set permissions and manage files and directories.

Open File handler Permissions manager

Along side the FileWriter and File handler the Library will also feature a permissions manager. The Permissions manager will give the FileHandler library the ability to set permissions relating to the files and directories.

Usage

Installation

*Creating a new Instantiation.**

Creating a Directory

if a root is not generated but required, the root directory will have to be passed for the following methods.

upon creating a Directory Helper methods such as hasDirectory and writable are also called these methods are required to make sure the correct permissions and structure access are put in place click here for more informtion on helpers.

Generating Files

Open Handler has the ability to Generate files with Additional Customisation read more about FileWriter commands.

Listing Files and Folders

the code below can be used to list directories and the files, it is recommended to list them in a loop but can also be apploed to the var_dump or print_r methods for debugging purposes.

Deleting Directory and files

OpenHandler has the ability to delete a single file or directory.

Passing a single filename will Remove the specific file.

Passing a directory will Delete the specified directory along with any files inside.

Setting a prefix

Using a prefix gives the ability to group methods into a specific directory making and can be done like so.

Uploading FIles

Helpers

importing

Add Under Namspace

Add Within the classname

OpenHandler utilisies a trait called Structure which contants helper functions for ease of access when Handling Data.

hasFile

Check if the file is a valid file this uses the built in is_file() method and returns a true or false boolean.

fileExists

file Exists utilises the file_exist() method and checks if the file Exists.

hasDirectory

Has directory is used to validate if the path is a valid directory hasDirectory uses the is_dir() built in method and returns a true or false boolean.

reflection

The Reflection helper is used to call a new Reflection class instance.

getExtension

the getExtension helper gives the ability obtain the file extension type which can be used with other helper methods.

hasExtension

The hasExtension helper is used to validate and limit what file extentions can be used when writing or opening data.

WhitelistExtention

The Whitelist Extension helper can be used in conjunction with the hasExtension helper and getExtensions helper when creating a custom method.


All versions of openhandler with dependencies

PHP Build Version
Package Version
No informations.
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package lazarusphp/openhandler contains the following files

Loading the files please wait ...