Skip to content

fabriciocotag/forleaf-sql-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

ForLeaf SQL Parser

An simple SQL parser written in PHP.

Just include the index PHP file and call the static parse function passing the query, like this:

$result = ForLeafParser::parse('select id,title from example_table limit 10');

The return object is an array with the query parameters:

array( 'select' => array( 'id', 'title' ), 'from' => 'example_table', 'limit' => '10', )

Thanks for read. 😁

About

An SQL parser in PHP

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published