Download the PHP package christopheraseidl/laravel-auto-filer without Composer

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

Automated file organization for Eloquent Models

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

Laravel Auto Filer is a simple package that automates file organization for your Eloquent models. It handles file uploads, moves them to organized directories, and automatically cleans up files when they are deleted from the model or when their models are deleted.

Key features

Installation

You can install the package via composer:

You can optionally publish the config file:

Usage

Add the HasAutoFiles trait to your model and define which attributes should handle file uploads:

How it works

  1. File upload: Upload files to a temporary location and store the paths in your model attributes.
  2. Model save: When the model is saved, files are automatically moved to their permanent location.
  3. Path structure: Files are organized as disk://products/1/images/filename.jpg.
  4. File deletion: When a file is removed from a model attribute, it is deleted from the disk.
  5. Model delete: When a model is deleted, all associated files and their thumbnails are automatically removed.
  6. Rich text processing: Files referenced in rich text fields are automatically managed.
  7. Thumbnail management: When enabled, thumbnails are automatically created for images and cleaned up when originals are removed.

Example usage

Thumbnail generation

The package automatically generates thumbnails for image files when enabled in the config. Thumbnails are created during file moves and automatically cleaned up when the original files are deleted.

When enabled, uploading an image will automatically create a thumbnail alongside the original:

Thumbnails are automatically managed: when you delete or replace the original image, the corresponding thumbnail is also removed.

File Cleanup

You may schedule the CleanOrphanedUploads job by following Laravel's documentation on scheduling jobs.

Configuration

The package supports extensive configuration options. Here are the key settings:

Testing

Changelog

Please see CHANGELOG for more information on what has changed recently.

Credits

License

The MIT License (MIT). Please see License File for more information.


All versions of laravel-auto-filer with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
christopheraseidl/circuit-breaker Version ^0.4.1
illuminate/contracts Version ^10.0||^11.11||^12.0
intervention/image-laravel Version ^1.5
spatie/laravel-package-tools Version ^1.16
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 christopheraseidl/laravel-auto-filer contains the following files

Loading the files please wait ....