Skip to content

Instantly share code, notes, and snippets.

View pounard's full-sized avatar
💭
What's happening?

Pierre pounard

💭
What's happening?
View GitHub Profile
<?php
function usage($programeName) {
echo <<<EOT
Usage:
{$programeName} TRACE_FILE
EOT;
}
@pounard
pounard / duplicated_functions.php
Last active July 31, 2024 10:59
Finds duplicated functions names in PHP codebase
<?php
/**
* Run in folder where to scan:
* php -f /path/to/duplicated_functions.php
*
* For more detailed debug information:
* DEBUG=1 php -f /path/to/duplicated_functions.php
*/
declare (strict_types=1);
@pounard
pounard / XmlRequestWriter.php
Created August 7, 2024 09:53
Quick & ugly PHP array to XML converter
<?php
declare(strict_types=1);
/**
* Crache du XML, yay.
*/
class XmlRequestWriter
{
/**