Install FiQueLa
If you haven’t already, add the package to your project:Then include the autoloader:
Approach 1: Open a file with Stream\Provider
Use You can also open specific stream classes directly:
Stream\Provider::fromFile to open a file and call ->query() to start building a query with the fluent API. The format is inferred automatically from the file extension.Approach 2: FileQuery syntax with Query\Provider
Query\Provider::fromFileQuery accepts a compact string that encodes the format, file path, and data path in one expression. This is useful for quick one-liners.Approach 3: FQL string syntax with Query\Provider
Query\Provider::fql accepts a full SQL-like string. This is the most expressive option and mirrors the FQL syntax closely.Next steps
Fluent API
Learn every method available for building queries in PHP.
FQL syntax
Write full SQL-like query strings with all supported clauses.