Download the PHP package monkeyslegion/monkeyslegiondb without Composer
On this page you can find all versions of the php package monkeyslegion/monkeyslegiondb. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download monkeyslegion/monkeyslegiondb
More information about monkeyslegion/monkeyslegiondb
Files in monkeyslegion/monkeyslegiondb
Download monkeyslegion/monkeyslegiondb
More information about monkeyslegion/monkeyslegiondb
Files in monkeyslegion/monkeyslegiondb
Vendor monkeyslegion
Package monkeyslegiondb
Short Description Database connection manager for the Monkeyslegion PHP framework.
License MIT
Package monkeyslegiondb
Short Description Database connection manager for the Monkeyslegion PHP framework.
License MIT
Please rate this library. Is it a good library?
Informations about the package monkeyslegiondb
MonkeyslegionDB
MonkeyslegionDB is a database connection manager designed specifically for the Monkeyslegion PHP framework. It provides a robust set of features for handling database connections, query building, transactions, and logging.
Features
- Connection Pooling: Efficiently manage and reuse database connections.
- Query Builder: Construct SQL queries programmatically.
- Transactions: Execute a group of operations atomically.
- Logging: Log SQL queries and debug issues.
Requirements
- PHP 8.2 or higher
- Composer for dependency management
Installation
To install MonkeyslegionDB, run the following Composer command:
Usage
Connection Pooling
Functions
setConfig(array $config): void
: Sets the database configuration.getConnection(): PDO
: Retrieves a PDO connection from the pool.releaseConnection(PDO $connection): void
: Releases a PDO connection back to the pool.
Query Building
Functions
select(string $columns): self
: Sets the columns to select.from(string $table): self
: Sets the table to query from.where(string $column, string $operator, mixed $value): self
: Adds a WHERE condition.build(): string
: Builds and returns the SQL query.
Transactions
Functions
begin(): bool
: Begins a new transaction.commit(): bool
: Commits the current transaction.rollback(): bool
: Rolls back the current transaction.
Logging
Functions
logQuery(string $query, array $params = []): void
: Logs an executed SQL query.logError(string $message): void
: Logs an error message.
Documentation
For detailed documentation, please visit our documentation site.
Contributing
We welcome contributions! Please see our contributing guidelines for more details.
License
MonkeyslegionDB is open-source software licensed under the MIT license.
All versions of monkeyslegiondb with dependencies
PHP Build Version
Package Version
The package monkeyslegion/monkeyslegiondb contains the following files
Loading the files please wait ....