Download the PHP package i-ismail/laravel-file-upload without Composer

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

File Upload Service

Description

Laravel file upload is a package that allows to you upload a single file or multiple files with auto-optimization, resizing, uses a smart combination of the best optimization and lossy compression algorithms to shrink images to the minimum possible size while keeping the required level of quality.

Installation

Publish Config File

Packages dependency

  1. Intervention Image documentation.
  2. Laravel-media library documentation.

1- FileUploadService class

This class store file and return file name to store it in your model.

Here are a few short examples of what you can do:

You can add folder path.

You can add disk, by default disk is public.

You can add custom file name.

You can add custom extension, By default, we will set this value to "webp" for images.

You can use all methods in intervention image package.

You can delete file

You can use delete old file, for example in update.

You can get path.

Note: you can clean code by Accessors & Mutators

To get image.

Dont forget run this command.


2- MediaUploadService class

This class use media-library package to store media files for your model.

Preparing the database

You need to publish the migration to create the media table:

After that, you need to run migrations.

Publishing the config file

Publishing the config file is optional:

Preparing your model

Here are a few short examples of what you can do:

You can add collection.

You can add disk, by default disk is public.

You can use all methods in intervention image package before setModel method

You can use all methods in media library package after setModel method.

Retrieving media

This method returns a collection of Media-objects.

retrieving the first media and the URL for the first media.

Delete media

You can remove something from the library by simply calling delete on an instance of Media:

Delete Model

recommend: read Laravel-media library documentation.


All versions of laravel-file-upload with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4|^8.1
illuminate/contracts Version ^9.0|^10.0
spatie/laravel-medialibrary Version ^10.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 i-ismail/laravel-file-upload contains the following files

Loading the files please wait ....