PHP code example of mediawiki / at-ease
1. Go to this page and download the library: Download mediawiki/at-ease 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/ */
mediawiki / at-ease example snippets
use Wikimedia\AtEase\AtEase;
// Suppress warnings in a block of code:
AtEase::suppressWarnings();
$content = file_get_contents( 'foobar.txt' );
AtEase::restoreWarnings();
// ..or in a callback function:
AtEase::quietCall( 'file_get_contents', 'foobar.txt' );