aaronidas / apm-sql-lexer
SQL Lexer for APM in PHP
Installs: 53 071
Dependents: 2
Suggesters: 0
Security: 0
Stars: 3
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- php: >=5.4
Requires (Dev)
- phpunit/phpunit: ^4.8
- symfony/var-dumper: ^2.8
This package is auto-updated.
Last update: 2025-01-14 20:43:26 UTC
README
Simple and lightweight parser for span names in APM transactions written in PHP.
Installation
Install via [composer]
composer require aaronidas/apm-sql-lexer
How to use
Signature::parse($query);
Example:
$spanName = Signature::parse('SELECT * FROM foo'); var_dump($spanName); // output: SELECT FROM foo
Reference doc for development:
- PostgreSQL dollar quoting not implemented yet