Aura.Sql alternatives and similar libraries
Based on the "Database" category.
Alternatively, view Aura.Sql alternatives based on common mentions on social networks and blogs.
-
Medoo
The lightweight PHP database framework to accelerate the development. -
Doctrine Extensions
Doctrine2 behavioral extensions, Translatable, Sluggable, Tree-NestedSet, Timestampable, Loggable, Sortable -
ProxyManager
🎩✨🌈 OOP Proxy wrappers/utilities - generates and manages proxies of your objects -
Eloquent
[READ ONLY] Subtree split of the Illuminate Database component (see laravel/framework) -
Baum
Baum is an implementation of the Nested Set pattern for Laravel's Eloquent ORM. -
Idiorm
A lightweight nearly-zero-configuration object-relational mapper and fluent query builder for PHP5. -
RedBean
ORM layer that creates models, config and database on the fly -
Propel
Propel2 is an open-source high-performance Object-Relational Mapping (ORM) for modern PHP -
Doctrine2 Behaviors
Doctrine2 behavior traits that help handling Blameable, Loggable, Sluggable, SoftDeletable, Uuidable, Timestampable, Translatable, Tree behavior -
Spot2
Spot v2.x DataMapper built on top of Doctrine's Database Abstraction Layer -
Aura.SqlQuery
Independent query builders for MySQL, PostgreSQL, SQLite, and Microsoft SQL Server. -
Atlas.Orm
A data mapper implementation for your persistence model in PHP. -
Cake ORM
[READ-ONLY] A flexible, lightweight and powerful Object-Relational Mapper for PHP, implemented using the DataMapper pattern. This repo is a split of the main code that can be found in https://github.com/cakephp/cakephp -
Elasticsearch Eloquent
⚡️ Models like Eloquent for Elasticsearch. -
Simple MySQLi Class
:gem: Simple MySQLi Abstraction Layer + Doctrine/DBAL support -
LDBA
High-performance, low-memory-footprint, single-file embedded database for key/value storage -
PHP library access Firebase RESTful API
A working Firebase http client -
Symfony-RDM
Helps with the use of domain driven design & rich domain model in symfony / doctrine applications. -
LazyRecord
The fast ORM for PHP. (This is a history repo, please visit maghead/maghead)
Tired of breaking your main and manually rebasing outdated pull requests?
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of Aura.Sql or a related project?
README
Aura.Sql
Provides an extension to the native PDO along with a profiler and connection locator. Because ExtendedPdo is an extension of the native PDO, code already using the native PDO or typehinted to the native PDO can use ExtendedPdo without any changes.
Added functionality in Aura.Sql over the native PDO includes:
Lazy connection. ExtendedPdo connects to the database only on method calls that require a connection. This means you can create an instance and not incur the cost of a connection if you never make a query.
Decoration. DecoratedPdo can be used to decorate an existing PDO instance. This means that a PDO instance can be "extended" at runtime to provide the ExtendedPdo behaviors.
Array quoting. The
quote()
method will accept an array as input, and return a string of comma-separated quoted values.New
perform()
method. Theperform()
method acts just likequery()
, but binds values to a prepared statement as part of the call. In addition, placeholders that represent array values will be replaced with comma- separated quoted values. This means you can bind an array of values to a placeholder used with anIN (...)
condition when usingperform()
.New
fetch*()
methods. The newfetch*()
methods provide for commonly-used fetch actions. For example, you can callfetchAll()
directly on the instance instead of having to prepare a statement, bind values, execute, and then fetch from the prepared statement. All of thefetch*()
methods take an array of values to bind to to the query statement, and use the newperform()
method internally.New
yield*()
methods. These are complements to thefetch*()
methods thatyield
results instead ofreturn
ing them.Exceptions by default. ExtendedPdo starts in the
ERRMODE_EXCEPTION
mode for error reporting instead of theERRMODE_SILENT
mode.Profiler. An optional query profiler is provided, along with an interface for other implementations, that logs to any PSR-3 interface.
Connection locator. A optional lazy-loading service locator is provided for picking different database connections (default, read, and write).
Installation and Autoloading
This package is installable and PSR-4 autoloadable via Composer as aura/sql.
Alternatively, download a release, or clone this repository, then map the
Aura\Sql\
namespace to the package src/
directory.
Dependencies
This package requires PHP 5.6 or later; it has also been tested on PHP 7 and HHVM. We recommend using the latest available version of PHP as a matter of principle.
Aura library packages may sometimes depend on external interfaces, but never on external implementations. This allows compliance with community standards without compromising flexibility. For specifics, please examine the package [composer.json][] file.
Quality
This project adheres to Semantic Versioning.
To run the unit tests at the command line, issue composer install
and then
./vendor/bin/phpunit
at the package root. (This requires Composer to be
available as composer
.)
This package attempts to comply with PSR-1, PSR-2, and PSR-4. If you notice compliance oversights, please send a patch via pull request.
Community
To ask questions, provide feedback, or otherwise communicate with other Aura users, please join our Google Group, follow @auraphp, or chat with us on Freenode in the #auraphp channel.
Documentation
This package is fully documented [here](./docs/index.md).