Download the PHP package vartroth/upload-file without Composer

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

upload-file

Development

Install dependencies and run tests, syntax checks, and debug-dump checks:

Debug-call checks use PHP_CodeSniffer with only Generic.PHP.ForbiddenFunctions enabled in phpcs.xml.dist. Calls to var_dump, print_r, and var_export are forbidden, including calls that return a string via a second argument of true. Comments and strings are not flagged; vendor and index.php are excluded. This replaces php-parallel-lint/php-var-dump-check, whose implicit nullable parameters emit deprecations on PHP 8.4.

The library requires PHP >=8.4; the development test runner requires PHP >=8.4.1. composer test does not collect coverage. To generate an HTML coverage report in .phpunit.cache/coverage with Xdebug installed:

Image tests skip JPEG/WebP cases when the corresponding GD codecs are unavailable.

Image conversion

Conversion is opt-in and runs immediately, even without resizing:

Pass exactly image/webp, image/jpeg, or image/png. Quality is an integer from 0 to 100 (default 90); PNG maps it to compression, not visual quality. Conversion and resizing can be called in either order. Resizing only reduces width; omitted height preserves the aspect ratio. Resizing uses quality 90; call convertTo() after resizing to control the final encoding quality.

Successful conversion updates MIME, extension (.webp, .jpg, .png), size, and dimensions. keepOriginalName() keeps the filename stem, with the new extension. The upload temporary path stays unchanged for the existing save flow. Without transformation, upload bytes and supplied metadata remain unchanged.

Transformations detect the actual input format and require its GD decoder and the output encoder. Static JPEG, PNG, WebP, and BMP inputs are supported. Animated PNG/WebP and all GIF/AVIF transformations are rejected to avoid silently losing frames; these formats can still be uploaded unchanged. PNG/WebP retain alpha; JPEG/BMP flatten transparency onto white. GD re-encoding does not preserve EXIF or other ancillary metadata. Invalid arguments raise InvalidArgumentException; invalid images, unsupported transformations, unavailable codecs, and encoding or write failures raise UploadFileException.


All versions of upload-file with dependencies

PHP Build Version
Package Version
Requires php Version >=8.4
vartroth/functions-utils Version ^1.0.11
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 vartroth/upload-file contains the following files

Loading the files please wait ...