Download the PHP package mdeschermeier/fileworker without Composer

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

mdeschermeier\FileWorker

A simple package for searching, renaming, deleting, reading, and writing .csv files.

Methods

getCSVData

mixed FileWorker::getCSVData(string $filename, integer $max_line_size, string $delim)

Given a csv filename, parses the file and returns associative array of records with the header in the 'header' key of the returned array and a 2D array of records in the 'data' key.

Arguments

writeCSVData

boolean FileWorker::writeCSVData(array $data, string $filename, array $header, string $mode)

Given a 2D array of records, a filename (or path), and optionally an array of header fields, this function will write data to a csv formatted file.

Also optionally takes a file write mode setting.

Arguments

deleteFile

boolean FileWorker::deleteFile(string $filename)

Simple wrapper for deleting files.

Arguments

findFilesByExt

mixed FileWorker::findFilesByExt(string $dir, string $filetypes, boolean $regex_passed)

File search utility by file extension. Supports regex matching via passing the pattern in through the second parameter, just be sure to flip $regex_passed to true if passing regex. Supplying just the first parameter returns all files found.

Arguments

findFilesByName

mixed FileWorker::findFilesByName(string $dir, string $term, boolean $regex_passed)

File search utility by filename. Supports regex matching via passing the pattern in through the second parameter, just be sure to flip $regex_passed to true if passing regex. Supplying just the first parameter returns all files found.

Arguments

renameFile

mixed FileWorker::renameFile(string $original_name, string $new_name, string $parent_dir)

Simple wrapper for renaming files. Optional $parent_dir parameter for renaming files in non-local directories.

Arguments

buildRegex

string FileWorker::buildRegex(string $term, boolean $regex_passed)

Compiles various search terms into regex patterns for use with public class methods. Returns a pattern that matches everything by default.

Arguments

README.md generated with evert/phpdoc-md.


All versions of fileworker 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 mdeschermeier/fileworker contains the following files

Loading the files please wait ....