Some useful php scripts
PHP
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Util
data
.gitignore
README.md
compare_sql_tables.php
compare_yaml_hashmaps.php
composer.json
composer.lock
config.php.dist
explore_sql_query.php
explore_url.php
find_binary.php
get_by_sql_value.php
remove_from_file.php

README.md

php_scripts

Some useful php scripts.

explore_url

php explore_url.php <url> [--urldecode]

Explode an URL in different parts to ease reading

explore_sql_query

php explore_sql_query.php <query>

Display a SQL query formatted in a more readable way

compare_sql_tables

php compare_sql_tables.php

Compare two SQL tables to check whether their content is identical

Add settings/credentials in a config.php file to run it

remove_from_file

php remove_from_file.php file1 file2 output

Compare two text files and remove from file1 the lines from file2

get_by_sql_value

php get_by_sql_value.php inputFile outputFile

Read input file, get lines from an SQL table from file1 value, write lines into output file

Add settings/credentials in a config.php file to run it

find_binary

php find_binary.php <integer>

Decompose an integer into powers of two

compare_hashmaps

php compare_yaml_hashmaps.php file1 file2 <root_node>

Compare 2 YAML hashmap files (such as symfony parameters.yml files)

Example: $ php compare_yaml_hashmaps.php parameters1.yml parameters2.yml 'parameters'