Download the PHP package mcris112/file-manager-system without Composer

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

LARAVEL FILE SYSTEM MANAGER


Laravel File System Manager is a project to upload/view files and retrieve as resource to show it into your frontend file manager interface If u have some recommendations, please do.

Table of Contents


  1. Installation
    • Configuration
  2. Getting Started
    1. Save a file
    2. Use a different disk manager
  3. Functions
    1. Url
    2. Manage Size
    3. Content
    4. From Base 64
    5. Collection
  4. Traits
    • Resource
      • Customize FmFile resource transformation
    • Has an Image
    • Has image variations
    • FmPagination
  5. Category
    1. Folder
      • Create Folder
      • Content
      • Search Folders
      • Find a Folder
      • Folder Parent
      • Put into Folder
      • Delete folder or content
    2. File
      1. Search files
      2. Find a file
    3. Avatar
      1. Before use
      2. Used
      3. Url
      4. Create Avatar

Installation

Install the package with the command Composer:

Configuration

Publish the config file

Add/delete the disk driver size that you will use

At Users model, need to add CanViewFmFilePrivate, this is necessary for check if user can view the current file selected on route '.../storage/{disk}/{path}'

Getting Started

Save a file

Use a different disk manager

Just use the static function disk to change

Functions

Url

Manage Size

Get global information that is set into config and content saved

Get information by specific type of content

Content

Get this to show it into your file manager interface. Get a paginated list of files models that doesn't have a directory as parent

From Base 64

Convert a base64 encoded into a UploadedFile

Collection

When you get a collection of files models, It has a function to use

Traits

Resource

Convert relation at resource to frontend response. Use the trait ResourceFmImageVariationTransformation to use the function $this->fmImageVariation()

Before

After

Customize resource transformation

if you want to customize the resource to use in function $this->fmImageVariation(), just need to change the class in

Has an Image

If you want that a model has an image, you can define that relationship with trait and table

Model

Migration

Has image variations

If has different images variations

FmPagination

Category

Folder

Create Folder

Folder Content

Search Folders

Find a folder

Folder Parent

If you want to create a sub folder, you can define the parent

Put into folder

To save some content inside of folder, just do

Delete folder or content

File

Search Files

Find a File

Why FileSystemManager::folder()->find( $id ) instead of FmFile::find($id) or FmFile::whereId($id)->get(), you can use it but in this case will return a full cached model.

Delete file

Why use FileSystemManager::file($file)->delete() instead of $file->delete(), in this case, if something happens when It's destroying your file, the record on your db won't be rolled back and It will generate an incorrect sum of storage size

Avatar

Before Use

Config

Dont forget to configure filesystemmanager.php in case you want to use avatars

Add UserHasAvatar trait to avoid errors when is null to generate a based name avatar, but if you always will set a file, you can avoid this step

Used

How much storage is the avatar using

Avatar Url

Get the Avatar url from User

Create Avatar

You can define the file, but as same time you can let it as null and It will create an avatar based on name


All versions of file-manager-system with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
ext-gd Version *
intervention/image Version ^3.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 mcris112/file-manager-system contains the following files

Loading the files please wait ....