Download the PHP package tuum/filemap without Composer

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

FileMap

A file mapper that maps a path to various file types, such as images, text, and markdown file.

finds a file based on a given path, and returns the file resource or contents (string), associated mime-type, and other information.

License

MIT License

PSR

PSR-1, PSR-2, and PSR-4.

Usage

The render method will find a file, then returns an FileInfo object which has methods like:

FileInfo Object

FileInfor have methods such as:

depending on the type of file, the FileInfo object may have a file resource or a file's contents as string. Try retriving a file resource first, then file contents if no resource is found.

Emissions

Emitting based on Extensions

The FileMap will emit the file as a resource, if

The following list some of the predefined extensions and associated mime-type:

To add your extensions,

Viewing File Content

The FileMap will emit the file content as a text, if

To add an extension for viewing files,

The following shows the pre-defined extensions and the behavior of rendering. In all cases, it returns mime-type as text/html.

MarkUp for CommonMark

MarkUp class converts common-mark (AKA Markdown) file to HTML. Construction Set markdown file root directory of markdown files, and cache directory,

Usage:

The $markUp will converts the CommonMark to HTML only when cached html file is not found.


All versions of filemap with dependencies

PHP Build Version
Package Version
Requires league/flysystem Version ~1.0
league/commonmark Version ^0.12
league/flysystem-cached-adapter Version ~1.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 tuum/filemap contains the following files

Loading the files please wait ....