{"id":24408592,"url":"https://github.com/jenstornell/squid","last_synced_at":"2026-05-21T05:04:01.098Z","repository":{"id":217043553,"uuid":"164199635","full_name":"jenstornell/squid","owner":"jenstornell","description":"A PHP MySQL query tester","archived":false,"fork":false,"pushed_at":"2019-01-12T21:32:09.000Z","size":268,"stargazers_count":0,"open_issues_count":7,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-13T09:27:14.292Z","etag":null,"topics":["mysql","php","query","rows","select","sql","tester"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jenstornell.png","metadata":{"files":{"readme":"readme.md","changelog":"changelog.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2019-01-05T09:15:12.000Z","updated_at":"2019-01-12T21:32:10.000Z","dependencies_parsed_at":"2024-01-14T08:12:19.789Z","dependency_job_id":"d918e222-994d-422d-93fe-e5738fc7b8f9","html_url":"https://github.com/jenstornell/squid","commit_stats":null,"previous_names":["jenstornell/squid"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jenstornell/squid","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jenstornell%2Fsquid","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jenstornell%2Fsquid/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jenstornell%2Fsquid/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jenstornell%2Fsquid/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jenstornell","download_url":"https://codeload.github.com/jenstornell/squid/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jenstornell%2Fsquid/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264816577,"owners_count":23668220,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["mysql","php","query","rows","select","sql","tester"],"created_at":"2025-01-20T05:52:18.768Z","updated_at":"2026-05-21T05:03:56.067Z","avatar_url":"https://github.com/jenstornell.png","language":"PHP","funding_links":["https://www.paypal.me/DevoneraAB"],"categories":[],"sub_categories":[],"readme":"# Squid\n\n*Version 1.1*\n\nA PHP MySQL query tester.\n\n![Screenshot](screenshot.png)\n\n## Squid vs phpMyAdmin\n\nphpMyAdmin is a big tool with lots of stuff. Squid is only made for testing SQL queries. In the table below I will compare Squid to the SQL tab in phpMyAdmin.\n\n| Feature                            | Squid              | phpMyAdmin         |\n| ---------------------------------- |:------------------:|:------------------:|\n| Ajax driven                        | :heavy_check_mark: | :heavy_check_mark: |\n| Latest query saved                 | :heavy_check_mark: | :warning:          |\n| Textarea autosize                  | :heavy_check_mark: | :warning:          |\n| Query and results on the same page | :heavy_check_mark: | :warning:          |\n| Format query                       | :heavy_check_mark: | :heavy_check_mark: |\n| Create query with buttons          | :x:                | :heavy_check_mark: |\n| Row counter                        | :heavy_check_mark: | :heavy_check_mark: |\n| Fixed scrollbar and table headings | :heavy_check_mark: | :heavy_check_mark: |\n| No bloat                           | :heavy_check_mark: | :x:                |\n| Login                              | :x:                | :heavy_check_mark: |\n| Mobile friendly                    | :x:                | :x:                |\n\n## Setup\n\nPlace the files on a server with PHP7+ and MySQL.\n\n**BE AWARE: There is no login so put it on a localhost server or use a htpasswd file.**\n\n### 1. Database\n\nAdd a file called `setup.php` in the root and setup your database like below.\n\n```php\n\u003c?php\noption::set([\n  'db' =\u003e [\n    'name' =\u003e 'database_name',\n    'user' =\u003e 'root',\n    'pass' =\u003e '',\n    'host' =\u003e 'localhost',\n    'charset' =\u003e 'utf8mb4' // Optional\n  ]\n]);\n```\n\n## Usage\n\n### Query form\n\nWrite or paste an SQL query. Click the button to run the query.\n\n- The textarea will autosize when writing.\n- Only SELECT queries are allowed by default.\n- The query will be saved to disk and loaded again on refresh.\n\n### Format SQL\n\nMaybe you need a formatted SQL query with syntax highlighting. Here you can get it.\n\n### Affected rows\n\nA row counter of found rows.\n\n### Table\n\nIf the SQL query is valid the data will be displayed as a table. I recommend to use `LIMIT`, else it will be slow with many rows.\n\nHold down `ALT` and double click on a table data cell to see the full content of that cell.\n\n## Options\n\nYou can add options to `setup.php` placed in the root.\n\n### cell_max_width\n\nIn some cases database rows can be very long. To prevent that you can set `cell_max_width` to something like `200`, which will be 200 pixels.\n\nIf you want to see a particular value again, you can hover the table cell to get a tooltip.\n\n```php\noption::set([\n  'cell_max_width' =\u003e 200\n]);\n```\n\n### select_only\n\nTo prevent data loss by accident, only `SELECT` queries are allowed. At own risk you can disable it by setting it to `false`.\n\n**BE AWARE: This will not protect you against abuse. You can still use subqueries with DELETE or UPDATE actions.**\n\n```php\noption::set([\n  'select_only' =\u003e true\n]);\n```\n\n## Requirements\n\n- PHP7\n- ES6 supported browser like Google Chrome\n\n## Libraries used\n\n- https://github.com/jdorn/sql-formatter\n- https://github.com/jackmoore/autosize\n- https://github.com/jenstornell/TinyOptions\n- https://github.com/cferdinandi/modals\n\n## Disclaimer\n\nUse at own risk! There is no login.\n\n## Donate\n\nDonate to [DevoneraAB](https://www.paypal.me/DevoneraAB) if you want.\n\n## License\n\nMIT","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjenstornell%2Fsquid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjenstornell%2Fsquid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjenstornell%2Fsquid/lists"}