Ad

fluentpdo: PHP SQL Query Builder with Fluent Syntax

FluentPDO simplifies SQL query construction in PHP by offering a fluent interface for building complex queries. It supports multiple databases and provides features like smart joins.
Screenshot of envms/fluentpdo homepage

FluentPDO is a PHP library that streamlines the process of building SQL queries using a fluent interface. It allows developers to construct complex queries with less code and improved readability. The library primarily focuses on simplifying query construction, particularly through its smart join builder which reduces boilerplate code for common join operations. It utilizes PDO for database interaction, making it compatible with various database systems.

FluentPDO's smart join builder significantly reduces the verbosity of common join operations. It offers type hinting and code completion in IDEs, enhancing developer productivity. The library supports multiple database systems compatible with PDO and includes features for efficient query construction and execution. Version 3 introduces substantial improvements in memory usage and performance.

  • Database Support: Supports any database compatible with PDO (MySQL, PostgreSQL, SQLite, etc.).
  • Smart Join Builder: Simplifies complex joins by automatically handling join syntax.
  • Type Hinting & Autocompletion: Provides type hinting and IDE autocompletion for improved development experience.
  • CRUD Examples: Offers concise examples for SELECT, INSERT, UPDATE, and DELETE operations.
  • Flexible Query Construction: Supports building complex SELECT, INSERT, UPDATE & DELETE queries with minimal code.
  • Connection Management: Includes the ability to close PDO connections to free resources.
  • Versioned Releases: Offers stable releases (2.x) and an alpha version (3.x) with performance improvements.

FluentPDO has a stable release (2.x) that is actively maintained and supports PHP versions 7.3 to PHP 8.0. The library has a significant community presence and a well-defined licensing model. Regular commits and issue resolution demonstrate ongoing development. Documentation is improving alongside new releases. The legacy 1.x version is no longer supported.

FluentPDO benefits PHP developers looking for a more concise and readable way to build SQL queries. It's suitable for web applications and other projects that require database interaction. It offers a more developer-friendly alternative to raw SQL query construction, reducing errors and improving code maintainability compared to manual SQL string concatenation or other methods.

Languages:
Summarize:
Share:
Stars
922
Forks
185
Issues
50
Created
14 years ago
Commit
2 years ago
License
None
Archived
No
Updated 16 days ago

Similar Repositories