PHP code example of freddyouellette / php-files-normalizer
1. Go to this page and download the library: Download freddyouellette/php-files-normalizer library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
freddyouellette / php-files-normalizer example snippets
// quire_once __DIR__.'/vendor/autoload.php';
// ormalizer;
// normalize the $_FILES array
$files = PhpFilesNormalizer::normalize($_FILES);
$files = ['other-data' => 12345];
$files = PhpFilesNormalizer::normalize($_FILES, $files);
$data = array_merge($_POST, $_GET);
$data = PhpFilesNormalizer::normalize($_FILES, $data);
// some controller which accepts data as an argument
$Controller->__invoke($data);
composer