Installing Xdebug for XAMPP with PHP 7.x
Requirements
- XAMPP for Windows: https://www.apachefriends.org/download.html
- Microsoft Visual C++ Redistributable for Visual Studio 2015, 2017 and 2019
The url has changed: https://odan.github.io/2017/01/07/basic-crud-operations-with-pdo.html
The url has changed: https://odan.github.io/2017/03/21/xampp-oracle-driver-setup-v12.html
The url has changed: https://odan.github.io/2017/04/17/rest-restful-api-quick-reference.html
<?php | |
class Configuration | |
{ | |
private $settings = []; | |
public function __construct(array $settings) | |
{ | |
$this->settings = $settings; | |
} |
This post has been deleted.
The URL has changed: https://odan.github.io/2018/07/17/aspnet-core-2-ubuntu-setup.html
<?php | |
use PhpOffice\PhpSpreadsheet\Cell\Coordinate; | |
use PhpOffice\PhpSpreadsheet\Reader\Xlsx; | |
/** | |
* ExcelFileReader. | |
*/ | |
class ExcelFileReader | |
{ |
To mock an interface with PHPUnit we have to pass all methods of the given Interface.
$reflection = new \ReflectionClass(UserRepositoryInterface::class);
$methods = [];
<?php | |
$dom = new DOMDocument(); | |
$dom->preserveWhiteSpace = false; | |
$dom->formatOutput = true; | |
$dom->loadXML(file_get_contents(__DIR__ . '/demo.xml')); | |
$dom = removeAllNamespaces($dom); | |
$dom->save('demo-out.xml'); |