https://github.com/matks/php_scripts
Some useful php scripts
https://github.com/matks/php_scripts
php php-scripts
Last synced: 8 months ago
JSON representation
Some useful php scripts
- Host: GitHub
- URL: https://github.com/matks/php_scripts
- Owner: matks
- Created: 2014-09-12T11:57:35.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2017-07-26T13:08:25.000Z (over 8 years ago)
- Last Synced: 2025-04-01T02:49:50.210Z (9 months ago)
- Topics: php, php-scripts
- Language: PHP
- Homepage:
- Size: 16.6 KB
- Stars: 6
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
php_scripts
===========
Some useful php scripts.
explore_url
-----------
```bash
php explore_url.php [--urldecode]
```
Explode an URL in different parts to ease reading
explore_sql_query
-----------------
```bash
php explore_sql_query.php
```
Display a SQL query formatted in a more readable way
compare_sql_tables
------------------
```bash
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
------------------
```bash
php remove_from_file.php file1 file2 output
```
Compare two text files and remove from file1 the lines from file2
get_by_sql_value
----------------
```bash
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
-----------
```bash
php find_binary.php
```
Decompose an integer into powers of two
compare_hashmaps
----------------
```bash
php compare_yaml_hashmaps.php file1 file2
```
Compare 2 YAML hashmap files (such as symfony parameters.yml files)
Example: `$ php compare_yaml_hashmaps.php parameters1.yml parameters2.yml 'parameters'`