https://github.com/linkorb/connector
Connector: Database connection resolver
https://github.com/linkorb/connector
Last synced: 10 months ago
JSON representation
Connector: Database connection resolver
- Host: GitHub
- URL: https://github.com/linkorb/connector
- Owner: linkorb
- License: mit
- Created: 2017-01-27T15:12:39.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2024-11-05T19:18:15.000Z (over 1 year ago)
- Last Synced: 2025-06-12T23:42:05.714Z (about 1 year ago)
- Language: PHP
- Homepage: https://engineering.linkorb.com
- Size: 59.6 KB
- Stars: 1
- Watchers: 4
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Codeowners: CODEOWNERS
- Security: SECURITY.md
Awesome Lists containing this project
README
connector
============
Connector helps you to manage your app's database connection configurations
in dynamic environments.
Your app simply requests a configuration from connector by a name.
Connector will resolve the name into a full database configuration object
with properties like username, password, address, port, protocol etc.
Connector then helps you to turn this Config object into a PDO connection.
Next to the common Config properties, Connector also allows you to define
custom properties on a a database config instance. These custom properties
can then be used by your app to configure the application behaviour.
## Cascading configuration
A configuration may define connection properties directly,
or refer to a `server` and/or `cluster` by name.
This enables cascading configuration at 3 levels:
* db
* server
* cluster
Using this feature you can define the server or cluster at the db level,
and configure address, username, password, port and custom properties
at a higher level. This way you can quickly mass-reconfigure all
dbs on a given server or cluster.
## Usage
Please refer to `examples/` for usage examples
## Contributing
We welcome contributions to make this repository even better. Whether it's fixing a bug, adding a feature, or improving documentation, your help is highly appreciated. To get started, fork this repository then clone your fork.
Be sure to familiarize yourself with LinkORB's [Contribution Guidelines](/CONTRIBUTING.md) for our standards around commits, branches, and pull requests, as well as our [code of conduct](/.github/CODE_OF_CONDUCT.md) before submitting any changes.
If you are unable to implement changes you like yourself, don't hesitate to open a new issue report so that we or others may take care of it.
## Brought to you by the LinkORB Engineering team

Check out our other projects at [linkorb.com/engineering](http://www.linkorb.com/engineering).
By the way, we're hiring!