Download the PHP package weew/helpers-filesystem without Composer

On this page you can find all versions of the php package weew/helpers-filesystem. 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 helpers-filesystem

Filesystem helpers

Build Status Test Coverage Version Licence

Table of contents

Installation

composer require weew/helpers-filesystem

Introduction

This tiny library provides various helper functions to deal with files and directories in a concise and easy way.

Functions

file_get_directory

Get name of the file's directory.

string file_get_directory(string $path)

file_get_extension

Get name of the file's directory.

string file_get_extension(string $path)

file_get_name

Get name of the file's directory.

string file_get_name(string $path)

file_read

Read contents of a file.

mixed file_read(string $path)

file_create

Create a file and all necessary subdirectories.

bool file_create(string $path)

file_write

Write to a file.

bool file_write(string $path, string $content)

file_append

Append contents to the end of file.

bool file_append(string $path, string $content)

file_prepend

Prepend contents to the beginning of file.

bool file_prepend(string $path, string content)

file_delete

Delete a file.

bool file_delete(string $path)

file_rename

Move a file from one location to another and create all necessary subdirectories.

bool file_rename(string $oldPath, string $newPath)

file_copy

Copy a file from one location to another and create all necessary subdirectories.

bool file_copy(string $oldPath, string $newPath)

file_rename

Rename file at the given path.

bool file_rename(string $path, $newName)

directory_get_name

Get name of the file's directory.

string directory_get_name(string $path)

directory_get_parent

Get path of the parent directory.

string directory_get_parent(string $path)

directory_create

Create a directory and all subdirectories.

bool directory_create(string $path [, $mode = 0777])

directory_delete

Delete a directory and all of its files.

bool directory_delete(string $path)

directory_exists

Check if a directory exists.

bool directory_exists(string $path)

directory_rename

Rename a directory.

bool directory_rename(string $path, string $newName)

directory_move

Move directory to the specified path.

bool directory_move(string $oldPath, string $newPath)

directory_copy

Copy a directory and all of its contents to the specified path and create all necessary subdirectories.

bool directory_copy(string $oldPath, string $newPath)

directory_clear

Delete all files and directories inside a directory.

directory_clear(string $path)

directory_list

Return a list of files and directories. $absolute indicates whether the paths should be relative or absolute.

string[] directory_list(string $path [, $absolute = false])

directory_list_files

Return a list of files. $absolute indicates whether the paths should be relative or absolute.

string[] directory_list_files(string $path [, $absolute = false])

directory_list_directories

Return a list of directories. $absolute indicates whether the paths should be relative or absolute.

string[] directory_list_directories(string $path [, $absolute = false])


All versions of helpers-filesystem with dependencies

PHP Build Version
Package Version
Requires weew/helpers-string Version ^1.0.0
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 weew/helpers-filesystem contains the following files

Loading the files please wait ....