PHP code example of mirazmac / php-requirements-checker
1. Go to this page and download the library: Download mirazmac/php-requirements-checker 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/ */
mirazmac / php-requirements-checker example snippets
use MirazMac\Requirements\Checker;
$checker = new Checker;
// Define ffmpeg', 'mbstring'])
->rc', Checker::CHECK_IS_READABLE)
->ck and returns parsed to see if
$checker->ll check if file_uploads is enabled or not
// Notice the usage of boolean instead of On/Off/1/0
'file_uploads' => true,
// Note the comparison operator > before the desired value
// This means the library will check if post_max_size is greater than 2M or not
'post_max_size' => '>2M',
// Set a value to `NULL` to just skip the check for that value
// Useful when you don't wanna compare but want to fetch the
// current value on the parsed
$checker->ssl', 'mbstring', 'curl'
]);
$checker->_fetch', 'mb_substr', 'curl_init'
]);
$checker->, 'finfo', 'stdClass'
]);
$checker->rewrite', 'mod_mime'
]);
$checker->>
shell
composer
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.