# PHP-SQL-Parser 5.0

A new major version of PHP-SQL-Parser, a pure PHP parser for SQL with a focus on MySQL, and its first major version since 2014.

Version 5.0 adds the WITH keyword, window functions, CHECK in column definitions, and the true and false constants. It also fixes string literals that ended early on an escaped quote.

- Made by: [Justin Swanhart](https://github.com/greenlion)
- Shipped: 19/09/2026
- Date from: [release](https://github.com/greenlion/PHP-SQL-Parser/releases/tag/v5.0.0)
- Source: [github.com/greenlion/PHP-SQL-Parser](https://github.com/greenlion/PHP-SQL-Parser)
- Install: `composer require greenlion/php-sql-parser`
- Licence: BSD-3-Clause
- Stack: plain PHP
- Topics: Databases
- Checked: 30/10/2026
- Added: 31/10/2026

## Badge

Listed here? Add this badge to your README:

```markdown
[![Featured on phplives.dev](https://phplives.dev/badge.svg)](https://phplives.dev/entries/php-sql-parser-5-0/)
```

See more at [phplives.dev](https://phplives.dev)
