Download the PHP package vadiasov/upload without Composer

On this page you can find all versions of the php package vadiasov/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 upload

vadiasov/upload

PHP configuration

PHP must be able to upload your files. That means that upload_max_filesize and post_max_size must be equal to appropriate value.

For example:

Find php.ini. Insert in the working file: Open this file in any browser. See where is your php.ini. Open it in terminal. For example (Ubuntu 16.04): Find upload_max_filesize and post_max_size and change their values. For example: Then you need to restart PHP. For example: After that check phpinfo() again to be sure that PHP got new values.

Preparation

You need to have a directory to upload files. Decide first where do you want to place uploaded files. As rule it's some subdirectory in storage/app/public.

When you have decided about subdirectory:

Installation

  1. Create row in the application root composer: 2.Run in your terminal: 3.This package is developed with discovery feature. So it must itself to create row in a config/app.com about ServiceProvider: 4.Publish Assets. dropzone.js and dropzone.css will be copied from the package to public/js and css directories accordingly. 5.Edit config file that you will use in outer controller to start upload (for example: config/upload-admin.php): 5.1.For a single parent: 5.1.For a two-parents case: `
    • where url - package route of package controller function that process files
    • acceptedFiles - mime rules for uploading files
    • maxFilesize - maximum file size that is accepted
    • path - path to directory of uploaded files
    • db_table - DB table name where you save file names of uploaded files
    • column - table column name that keep file names of uploaded files
    • id_item - table column name that you can use to bind uploaded file to. For example, "album_id" of album that has this file (track).
    • backUrl - route name for a button "Back" under the form of uploading (you uploaded all files and click it to come back to somewhere).
    • header - String that may be inserted in the Upload form header (with title of an album).
    • parent_table - DB table name of parent packages. For example may be used to get a title of album.
    • parent_column_name - DB table column name of parent packages. For example may be used to get a title of album.

Using

Open page with route for a single parent: Open page with route for a two-parents case: to open upload form. Where

Example:


All versions of upload with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0
illuminate/support Version 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 vadiasov/upload contains the following files

Loading the files please wait ....