Download the PHP package koriym/query-locator without Composer
On this page you can find all versions of the php package koriym/query-locator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package query-locator
Koriym.QueryLocator
Koriym.QueryLocator is a PHP library that helps you manage SQL queries by locating and loading them from the file system. This approach simplifies query management and enhances code readability.
Installation
Install the library using Composer:
Usage
Basic Example
To use the QueryLocator class, instantiate it with the directory where your SQL files are stored. You can then retrieve queries using keys that correspond to the directory structure.
SQL Files Directory Structure
Code Example
Features
- File-Based Query Management: Store your SQL queries in separate files for better organization.
- Simple Query Retrieval: Use directory-based keys to retrieve queries.
- Count Query Generation: Automatically generate count queries.
Benefits
- Improved Readability: Keep your PHP code clean and readable by moving SQL queries to dedicated files.
- Easy Maintenance: Modify your SQL queries without changing the PHP code, just update the SQL files.
- Structured Organization: Organize your queries in a directory structure that makes sense for your application.
All versions of query-locator with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.1.0
The package koriym/query-locator contains the following files
Loading the files please wait ....