PHPackages                             thiagosv/controller-pdo - 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. thiagosv/controller-pdo

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

thiagosv/controller-pdo
=======================

Biblioteca para utilizacao do pdo.

v1.0.1(8y ago)0351MITPHP

Since Jan 19Pushed 8y ago1 watchersCompare

[ Source](https://github.com/thiagosv/controller-pdo)[ Packagist](https://packagist.org/packages/thiagosv/controller-pdo)[ RSS](/packages/thiagosv-controller-pdo/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (2)DependenciesVersions (3)Used By (1)

Biblioteca de CRUD com PDO.
===========================

[](#biblioteca-de-crud-com-pdo)

Para fazer a instalação da biblioteca, execute o seguinte comando:

```
composer require thiagosv/controller-pdo-query
```

Para fazer o uso da biblioteca, basta configurar os dados do banco, existentes no arquivo src/Conn.php e requerir o autoload do composer, invocar a classe e fazer a chamada do método:

```
    private static $host = DATABASE['HOST'];
    private static $user = DATABASE['USER'];
    private static $pass = DATABASE['PASS'];
    private static $name = DATABASE['NAME'];
```

Uso das classes:

SELECT:

```
read("table", "WHERE column1 = :param AND column2 = :param2", "param=value&param2=value2");
$Read->readFull("SELECT * FROM table WHERE column1 = :param AND column2 = :param2", "param=value&param2=value2");

$Read->getResult(); **  **
```

UPDATE:

```
update("tabela", ['value1' => 'value2'], "WHERE column1 = :param AND column2 = :param2", "param=value&param2=value2");

$Update->getResult(); **  **
```

DELETE:

```
delete("table", "Query sem select", "param=value&param2=value2");

$Delete->getResult(); **  **
```

Insert:

```
create("table", ['column1' => 'value1', 'column2' => 'value2']);

$Insert->getResult(); **  **
```

### Developers

[](#developers)

- [Thiago Vieira](mailto:thiagosilvavieira97@gmail.com)

License
-------

[](#license)

MIT

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~61 days

Total

2

Last Release

3024d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/17181081?v=4)[thiagosv](/maintainers/thiagosv)[@thiagosv](https://github.com/thiagosv)

---

Top Contributors

[![thiagosv](https://avatars.githubusercontent.com/u/17181081?v=4)](https://github.com/thiagosv "thiagosv (6 commits)")

### Embed Badge

![Health badge](/badges/thiagosv-controller-pdo/health.svg)

```
[![Health](https://phpackages.com/badges/thiagosv-controller-pdo/health.svg)](https://phpackages.com/packages/thiagosv-controller-pdo)
```

###  Alternatives

[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k117.2M117](/packages/jdorn-sql-formatter)[propel/propel1

Propel is an open-source Object-Relational Mapping (ORM) for PHP5.

8351.6M87](/packages/propel-propel1)[jfelder/oracledb

Oracle DB driver for Laravel

11518.4k](/packages/jfelder-oracledb)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
