Download the PHP package fsasvari/laravel-uploadify without Composer

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

Laravel Uploadify

Uploadify is a library for Laravel 5.5+ that handles image uploading with automatic renaming, showing thumbnail image with custom routes and more. All that is available over Eloquent models.

Build For Laravel Latest Stable Version Latest Unstable Version Total Downloads License

Installation

Step 1: Install package

To get started with Laravel Uploadify, execute Composer command to add the package to your composer.json project's dependencies:

Or add it directly by copying next line into composer.json:

And then run composer update:

Step 2: Service Provider and Facade

After installing the Laravel Uploadify library, register the Uploadify\Providers\UploadifyServiceProvider in your config/app.php configuration file:

Optionally, you can add alias to Uploadify facade:

Step 3: Configuration

We need copy the configuration file to our project.

Step 4: Symbolic link

If you have not yet created symbolic link in project, we need to create link between public and storage directories. We can use built in Laravel function storage:link which will create link between public/storage and storage/app/storage directories.

Or use Windows function for custom storage link:

Or use Unix function for custom storage link:

Step 5: Models

You need to include UploadifyTrait trait in your Eloquent models.

Files

If you need to show simple files (pdf, doc, zip...) in Eloquent model, you need to define $uploadifyFiles public property with database field name as key and path as array value which is required. Also, disk value is optional and it will be taken from default disk value from configuration.

Images

If you need to show images (jpg, png, gif...) in Eloquent model, you need to define $uploadifyImages public property with database field name as key and path as array value which is required. Also, disk value is optional and it will be taken from default disk value from configuration.

Files and Images combined

You can also combine files and images into one Eloquent model:

Step 6: Router

If you want to show processed images, you will need to include Uploadify controller in routes/web.php file.

Usage

Files

Images

List of options

List of custom options you can use when calling url() method:

Upload with UploadedFile

Upload example with usage of Laravel UploadedFile class received by Request instance.

Upload from path or url

Upload example with usage of file received from path or url.

Upload with InterventionImage

Upload example with usage of Intervention Image class created by user. First, you create Image instance with all image manipulations you want (resize, crop, rotate, grayscale...) and then inject that image instance in UploadifyManager.

Delete

delete() method deletes file from filesystem

Example Usage

Controller

View

Licence

MIT Licence. Refer to the LICENSE file to get more info.

Author

Frano Šašvari

Email: [email protected]


All versions of laravel-uploadify with dependencies

PHP Build Version
Package Version
Requires illuminate/support Version 5.5.*|5.6.*|5.7.*|5.8.*|6.*|7.*|8.*
illuminate/http Version 5.5.*|5.6.*|5.7.*|5.8.*|6.*|7.*|8.*
illuminate/filesystem Version 5.5.*|5.6.*|5.7.*|5.8.*|6.*|7.*|8.*
intervention/image Version 2.4.*|2.5.*|2.6.*|2.7.*
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 fsasvari/laravel-uploadify contains the following files

Loading the files please wait ....