Download the PHP package twom/laravel-file-manger without Composer

On this page you can find all versions of the php package twom/laravel-file-manger. 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 laravel-file-manger

## Laravel File Manager

Installation:

You must add the service provider to config/app.php

Publish your config file and migrations


Config:

config/filemanager.php

Config Parameters

name type description
provider string (class name) provider class name, must be extended of Twom\FileManager\BaseType
path string file upload path
private boolean is private or no if is true so upload file in storage folder else if is false so upload file in public folder
date_time_prefix boolean if is true so upload file with /{year}/{month}/{day} prefix
use_file_name_to_upload boolean if is true we use of the file original name else we generate a random name
secret string secret key for generate download link and download file
download_link_expire boolean generated download link expire time
parent string parent type name
sizes array array of sizes and there are only for image type
thumb string or number size for thumb image and this is only for image type

Lets start to use:

Upload a file:

You can use of this methods:

method description
useFileNameToUpload($status = true) if is true we use of the file original name else we generate a random name
type($type = null) change type for upload if is null so use of default type
getFile($name = null) get file by name and return a \Twom\FileManager\Models\File
setPath($path) set file upload path
delete($filename) delete the file help by this provider type
getUploadPath() get upload path
dateTimePrefix($value = true) if is true so upload file with /{year}/{month}/{day} prefix
setName(string $name) set file name
setFormat(string $format) set format for file upload
isPrivate() if you call this so upload file in storage folder and your you don't have permission to access this file
isPublic() if you call this so upload file in public folder and has access to this file

Examples:

Change type:


All versions of laravel-file-manger with dependencies

PHP Build Version
Package Version
Requires php Version >=7
laravel/framework Version >=5.8
intervention/image Version ^2.5
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 twom/laravel-file-manger contains the following files

Loading the files please wait ....