padosoft / laravel-request by lopadova

Laravel Package to interact with Illuminate Request and Files Upload.
891
2
4
Package Data
Maintainer Username: lopadova
Maintainer Contact: helpdesk@padosoft.com (Lorenzo Padovani)
Package Create Date: 2016-08-28
Package Last Update: 2022-04-05
Language: PHP
License: MIT
Last Refreshed: 2024-07-22 03:07:17
Package Statistics
Total Downloads: 891
Monthly Downloads: 5
Daily Downloads: 2
Total Stars: 2
Total Watchers: 4
Total Forks: 0
Total Open Issues: 0

Laravel Package to interact with Illuminate Request and Files Upload.

Latest Version on Packagist Software License Build Status Quality Score Total Downloads SensioLabsInsight

This package provides a series of class to interact with Illuminate Request and Files Upload.

##Requires

  • php: >=7.0.0
  • illuminate/support: ^5.0
  • illuminate/http: ^5.0
  • padosoft/io: ^1.0

Installation

You can install the package via composer:

$ composer require padosoft/laravel-request

Usage

use Padosoft\Laravel\Request\RequestHelper;

if(RequestHelper::currentRequestHasFiles()){
    echo 'current request has file uploaded!'; 
}

if(RequestHelper::isValidCurrentRequestUploadFile('items_image', ['image/jpg','image/png'])){
    echo 'current request has a valid file uploaded!'; 
}

$uploadedFile = RequestHelper::getCurrentRequestFileSafe('items_image'); 
var_dump($uploadedFile);

NOTE:

For all methods and helpers check the source code.

Change log

Please see CHANGELOG for more information what has changed recently.

Testing

$ composer test

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email instead of using the issue tracker.

Credits

About Padosoft

Padosoft (https://www.padosoft.com) is a software house based in Florence, Italy. Specialized in E-commerce and web sites.

License

The MIT License (MIT). Please see License File for more information.