New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

trungpv93/file-info-php

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

trungpv93/file-info-php

Detect file info from local or remote file (URL)

Source
Packagist
Version
1.0
Version published
Total downloads
27
Maintainers
1
Created
Source

file-info-php

Detect file info from local or remote file (URL).

##Installation

composer require trungpv93/file-info-php

Usage

$finfo = new \Trungpv93\FileInfoPHP\FileInfo();
$i = $finfo->get($link);

Laravel support

add provider and alias in config/app.php

'providers' => [
    ...
    Trungpv93\FileInfoPHP\FileInfoPHPServiceProvider::class
]

...

'aliases' => [
    ...
    'FileInfo'	=> Trungpv93\FileInfoPHP\FileInfoPHPFacade::class,
],

and in laravel you use it

    FileInfo::get($link);

Licence

MIT

Keywords

php

FAQs

Package last updated on 29 Sep 2016

Related posts