Download the PHP package ost/laravel-file-manager without Composer

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

Overview

Installation

Publish Package

Migrate to create table in database

Notes

Usage

Upload File

You can upload one or more file

Update File

Update File By Url

You can update the files by passing the files that you want to upload in the request and passing the urls of the files that you want to update to be deleted from storage

Update File By Path

You can update the files by passing the files that you want to upload in the request and passing the paths of the files that you want to update to be deleted from storage

Delete File

Delete File by Url

Delete File by File Path

You can pass file paths directly

Customisation

Set Model Name and ID

We do this to enable you to create relationships between tables

Set max file size

Set disk

Set Allowed File Extensions (MimeType)

Set Request File Key

default value for => file_key: 'file'

Make File Upload or update is optional

default value for => file_is_required: true change to false

Get Url For File

You can get file url and mime type or only url for file by passing file path

The return result => { "url": "http://127.0.0.1:8000/storage/user/1/images/YFSCBjbOCRQ7At7J7uX4cihDcZkf7j.png", "type": "png" }

Encrypt File path

You can encrypt file path but you must to create new disk in filesystem because public disk not with encrypted url To enable this feature

config/laravel_file_manager.php

Create New Disk

config/filesystems.php
.env

When get File Url ,the returned url like this:
{ "url": "http://127.0.0.1:8000/disk_name/eyJpdiI6IktKVlRTOENwUnJ5a3VTOG5CNzJsYVE9PSIsInZhbHVlIjoiY25wbEZlYUsxeEhNUXdhWnBSZHgwNlhwRzk1UDJXY0MyTyt4R1NqQjdDS1owRk4vTFdqQWFQU0d3U2h2Z1FBK0Y0TVZCazBRWFNpR2xwOTlpMHBwS2c9PSIsIm1hYyI6IjdjMDgwYTUzOTcxYjMyNWQ2Y2UwNTI5MDI5NmQ0ZjA5YTA0YzU2NjgxMjAxZGZmN2I2YjU5YTMzMjRiMWRkNjMiLCJ0YWciOiIifQ==", "type": "png" }

Advanced

- You can use File Eloquent model

- You can receive requests for get and customizing files through

config/laravel_file_manager.php

Change value from true to false

routes/web.php

Add Route in routes/web to receive request


All versions of laravel-file-manager with dependencies

PHP Build Version
Package Version
Requires php Version ^7.3|^8.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 ost/laravel-file-manager contains the following files

Loading the files please wait ....