Skip to content

trungpv93/file-info-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages