Download the PHP package mattmy/laravel-file-magic without Composer

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

FileMagic

繁體中文

Manage files in Laravel through one clear API. FileMagic stores file records with Eloquent and works with Laravel Filesystem disks, so you can upload, find, read, download, and delete files without building the same workflow for every source.

What you can do

Requirements

Remote files need PHP ext-curl. Image resizing needs Intervention Image 4 with GD or Imagick. ZIP downloads need PHP ext-zip.

Installation

Quick start

Store files from different sources

Generate documents with the same storage options:

Configure a file

Use resizeImage() when supported images should be reduced before storage:

Find and use stored files

Use readStream() instead of contents() for large files, and close the returned stream when finished.

ZIP downloads and deletion

Applications must authorize every file before reading, downloading, or deleting it.

Consistency audits

Check whether database records still have matching files on storage:

The command is read-only unless --delete-missing-records is supplied. Remote disks may add network time and storage request charges, so review the audit guide before scheduling cleanup.

Handle errors

All package exceptions extend FileMagicException:

Documentation

For every method, field, parameter, exception, configuration option, performance note, and security recommendation, see the FileMagic documentation.

Report vulnerabilities privately according to SECURITY.md.

License

FileMagic is open-source software licensed under the MIT License.


All versions of laravel-file-magic with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
ext-fileinfo Version *
guzzlehttp/psr7 Version ^2.7
illuminate/console Version ^12.0|^13.0
illuminate/contracts Version ^12.0|^13.0
illuminate/database Version ^12.0|^13.0
illuminate/filesystem Version ^12.0|^13.0
illuminate/http Version ^12.0|^13.0
illuminate/support Version ^12.0|^13.0
psr/http-message Version ^1.1|^2.0
symfony/http-foundation Version ^7.0|^8.0
symfony/mime Version ^7.0|^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 mattmy/laravel-file-magic contains the following files

Loading the files please wait ...