Skip to content
/ pdoload Public

Small PDO wrapper/abstraction layer to provide read/write endpoints and load balancing capabilities in one line of code

License

Notifications You must be signed in to change notification settings

gonzie/pdoload

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Latest Stable Version PHP from Packagist License from pugx

PDOLoad

PDOLoad is a small PDO wrapper to provide read/write endpoints and load balancing capabilities in one line of code.

Main Features

  • Add multiple read and write endpoints.
  • One line implementation. No need to rewrite your PDO queries.
  • Transaction aware. Any reads while a transaction is active will be performed on the write connection.

Getting started

  • PHP >= 7.0 is required
  • Install PDOLoad using composer (recommmended) or manually
  • Configure your connections and you're ready to go!

Installing with Composer

composer require gonzie/pdoload

How to use

Documentation will be updated soon.

Contributing

Any changes to the Project must abide by PSR Standards (PSR 2 - 12, PSR4 and others where applicable).

Please run phpcs before committing any code.

./vendor/bin/phpcs --standard=psr2 src/

About

Small PDO wrapper/abstraction layer to provide read/write endpoints and load balancing capabilities in one line of code

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages