scipper/formfile

parses the $_FILES array into an object.

Maintainers

Package info

github.com/scipper/formfile

Homepage

pkg:composer/scipper/formfile

Statistics

Installs: 286

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

1.0.1 2015-10-15 11:18 UTC

This package is not auto-updated.

Last update: 2026-03-01 02:27:58 UTC


README

parses the $_FILES array into an object

usage

<?php
	
use scipper\Formfile\Formparser;
use scipper\Formfile\FormfileException;
	
$formparser = new Formparser();
$formparser->parse();
	  
foreach($formparser->getFormfiles() as $file) {
  try {
    $path = $file->save("/some/where/");
  } catch(FormfileException $e) {
    error_log($e->getMessage());
  }
}