Download the PHP package simp/uploader without Composer

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

The provided PHP-based file upload system offers two primary methods for handling file uploads:

  1. URL-based Uploads: Allows users to upload files by providing a direct URL.
  2. Form-based Uploads: Enables users to upload files through an HTML form.

The system is designed with extensibility and security in mind, utilizing traits and base classes to promote code reuse and maintainability.

Key Components

1. Traits

a. Properties Trait

This trait encapsulates common properties used across different uploader classes, such as:

By defining these properties in a trait, the system ensures consistency and reduces redundancy across uploader classes.

b. CommonFunction Trait

This trait provides common methods shared among uploader classes, including:

These methods facilitate setting allowed file extensions, specifying maximum file sizes, and determining file extensions based on MIME types.

2. Base Classes

a. UrlUploader Class

Handles file uploads via direct URLs. Key functionalities include:

b. FormUploader Class

Manages file uploads through HTML forms. Its responsibilities encompass:

3. Example Implementations

a. Url.php

An example implementation of the UrlUploader class. It demonstrates how to:

b. Form.php

An example implementation of the FormUploader class. It illustrates how to:

4. User Interfaces

a. index.php

Provides a user interface for URL-based uploads. Users can input a direct URL to upload a file.

b. form.php

Offers a user interface for form-based uploads. Users can select and upload files from their local system.

Usage Instructions

URL-based Uploads

  1. Access the URL Upload Interface:

    • Navigate to index.php in your web browser.
  2. Provide the File URL:

    • Enter the direct URL of the file you wish to upload.
  3. Upload Process:
    • The system will validate the file's MIME type and size.
    • If valid, the file will be downloaded and saved to the specified directory.

Form-based Uploads

  1. Access the Form Upload Interface:

    • Navigate to form.php in your web browser.
  2. Select and Upload a File:

    • Choose a file from your local system that meets the validation criteria.
    • Submit the form to upload the file.
  3. Upload Process:
    • The system will validate the uploaded file's MIME type and size.
    • If valid, the file will be moved to the designated directory.

Developer Notes

By understanding and utilizing these components, developers can effectively implement and customize the file upload system to meet specific application requirements.


All versions of uploader with dependencies

PHP Build Version
Package Version
Requires simp/streamwrapper Version ^1.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 simp/uploader contains the following files

Loading the files please wait ...