Download the PHP package victor-codigo/upload-file without Composer
On this page you can find all versions of the php package victor-codigo/upload-file. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download victor-codigo/upload-file
More information about victor-codigo/upload-file
Files in victor-codigo/upload-file
Download victor-codigo/upload-file
More information about victor-codigo/upload-file
Files in victor-codigo/upload-file
Vendor victor-codigo
Package upload-file
Short Description Classes to manage file uploads
License MIT
Package upload-file
Short Description Classes to manage file uploads
License MIT
Please rate this library. Is it a good library?
Informations about the package upload-file
Upload file
Classes to manage file upload with symfony or package http-foundation.
This package is in charge of Geting the file uploaded, and move it to a new path, with a secure name.
It also allows to replace a file by the new uploaded.
Prerequisites
- PHP 8.1
- Symfony 6.4 or package http-foundation
Stack
Usage
-
Install
- Classes
- UploadFileService: It is the main class. Manages file uploads.
- FileSymfonyAdapter: It is a wrapper for http-foundation package class File.
- UploadedFileSymfonyAdapter: Its a wrapper for http-foundation package class UploadedFile.
- Classes
UploadFileService methods:
Method | Description | Params | Return |
---|---|---|---|
__construct | Creates class instance | Symfony\Component\String\Slugger\SluggerInterface | VictorCodigo\UploadFile\Adapter\UploadFileService |
__invoke | Moves the uploaded file to a new location | 1. VictorCodigo\UploadFile\Domain\UploadedFileInterface: The file uploaded. 2. string: path where files are uploaded. 3. string or null: File name to remove in uploads path. |
VictorCodigo\UploadFile\Domain\FileInterface |
getFileName | Gets the name of the file, after been renamed | string | |
getNewInstance | Creates a new instance of the class | VictorCodigo\UploadFile\Adapter\UploadFileService |
All versions of upload-file with dependencies
PHP Build Version
Package Version
Requires
symfony/http-foundation Version
^6.4
The package victor-codigo/upload-file contains the following files
Loading the files please wait ....