An open API service indexing awesome lists of open source software.

https://github.com/solvebeam/wpdbx

Modern PHP wrapper for WordPress $wpdb with exception-based error handling.
https://github.com/solvebeam/wpdbx

composer composer-package packagist php solvebeam wordpress wordpress-development wordpress-library wpdb

Last synced: about 2 months ago
JSON representation

Modern PHP wrapper for WordPress $wpdb with exception-based error handling.

Awesome Lists containing this project

README

          

# SolveBeam WpdbX

Exception-based wrapper around WordPress `$wpdb` for modern PHP usage.

## Installation

```bash
composer require solvebeam/wpdbx
```

## Usage

```php
query( '…' );
} catch ( \Exception $e ) {
\wp_die( $e->getMessage() );
}

```

## Links

- https://github.com/solvebeam/wpdbx
- https://packagist.org/packages/solvebeam/wpdbx
- https://spdx.org/licenses/GPL-3.0-or-later.html
- https://www.solvebeam.com/