PHPackages                             adrian0350/simple-pdo-wrapper - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. adrian0350/simple-pdo-wrapper

ActiveLibrary[Database &amp; ORM](/categories/database)

adrian0350/simple-pdo-wrapper
=============================

As its name suggests, it is a simple PDO wrapper to facilitate/simplify/beautify sql syntax and PDO usage.

1.3.0(8y ago)330MITPHPPHP &gt;=5.0

Since Sep 16Pushed 8y ago1 watchersCompare

[ Source](https://github.com/Adrian0350/SimplePDOWrapper)[ Packagist](https://packagist.org/packages/adrian0350/simple-pdo-wrapper)[ Docs](https://github.com/Adrian0350/SimplePDOWrapper)[ RSS](/packages/adrian0350-simple-pdo-wrapper/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (12)Used By (0)

Introduction
============

[](#introduction)

SimplePDOWrapper's purpose is to help you handle simple database actions with a reduced amount of code as well as writting less-messy code following a simple structure.

You can:

- Save
- Update
- Delete (with conditions)
- Delete all (without conditions)
- Find one
- Find all
- Set database (switch on the fly)
- Error handling through public var @errors

Dependencies
============

[](#dependencies)

- [PHP PDO](http://php.net/manual/en/book.pdo.php)

PHP Version
===========

[](#php-version)

This class is compatible with **PHP 5.0 and above** due to the **PHP PDO** dependency.

Installing
==========

[](#installing)

Add this library to your [Composer](https://packagist.org/packages/adrian0350/simple-pdo-wrapper) configuration. In composer.json:

```
  "require": {
    "adrian0350/simple-pdo-wrapper": "1.*"
  }
```

### Or

[](#or)

If you're using bash.

```
$ composer require adrian0350/simple-pdo-wrapper

```

Usage
=====

[](#usage)

For usage just call the methods from your SimplePDOWrapper instance object.

```
