Skip to content
itsalb3rtPublic

About

A simple class to move file most easy.

Topics

Resources

Stars

3 stars

Watchers

0 watching

Forks

Latest commit

 

History

12 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FileMove

A simple class to move file most easy.

Use

$ composer require ligne/file-move
use Ligne\FileMove;

$file = new FileMove("myfile","files/"); //The final slash is required
$file->save();

Easy! 🎉

Other methods

$file->setFileName();
/** 
* The mime type of the file, if the browser provided this information. 
* An example would be "image/gif". 
* This mime type is however not checked on the PHP side and therefore don't take its value for granted.
 */
$file->getFileType(); 
$file->debugData();
$file->getDirToSave();
$file->getExtension();
$file->getExtensionFromName();
$file->getFileName();
$file->getInputFileName();

About

A simple class to move file most easy.

Topics

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages