PHPackages                             qdladoooo/sweeter-fetch - 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. qdladoooo/sweeter-fetch

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

qdladoooo/sweeter-fetch
=======================

Sweeter-fetch, a wrapper of PDO. Procedure oriented, pre process, as supplement of ORM.

v0.2(10y ago)337MITPHP ^7.0

Since Jun 7Compare

[ Source](https://github.com/qdladoooo/sweeter-fetch)[ Packagist](https://packagist.org/packages/qdladoooo/sweeter-fetch)[ RSS](/packages/qdladoooo-sweeter-fetch/feed)WikiDiscussions Synced today

READMEChangelogDependencies (1)Versions (3)Used By (0)

Sweeter-fetch - a database fetching library
-------------------------------------------

[](#sweeter-fetch---a-database-fetching-library)

Wrapper for PDO.

Procedure oriented, Pre process, As supplement of ORM.

[![Build Status](https://camo.githubusercontent.com/94ba44c3a49af7cdd8a5c584461aefb24c73e1c83283a79272fa82b225bb1a69/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f71646c61646f6f6f6f2f737765657465722d66657463682e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/qdladoooo/sweeter-fetch)[![Latest Stable Version](https://camo.githubusercontent.com/9b099815ad7b3ffaab9823934d73fed67d9889722b45381d490efb9725b82344/68747470733a2f2f706f7365722e707567782e6f72672f71646c61646f6f6f6f2f737765657465722d66657463682f762f737461626c65)](https://packagist.org/packages/qdladoooo/sweeter-fetch)[![Latest Unstable Version](https://camo.githubusercontent.com/5a0cd3b7ac17f3f837374df63d34d172b6ca3659d96569ed53132a51e6eca27b/68747470733a2f2f706f7365722e707567782e6f72672f71646c61646f6f6f6f2f737765657465722d66657463682f762f756e737461626c65)](https://packagist.org/packages/qdladoooo/sweeter-fetch)[![License](https://camo.githubusercontent.com/fe7b27dfdc91f2c420fc5fdff636a5044c30119584d74b79acdf8cd3c6a8c513/68747470733a2f2f706f7365722e707567782e6f72672f71646c61646f6f6f6f2f737765657465722d66657463682f6c6963656e7365)](https://packagist.org/packages/qdladoooo/sweeter-fetch)

Installation
------------

[](#installation)

```
composer require qdladoooo/sweeter-fetch
```

Initialization
--------------

[](#initialization)

```
require "../vendor/autoload.php";
use SweeterFetch\SweeterFetch;

$sf = new SweeterFetch('host', 'username', 'password');
```

Use
---

[](#use)

Execute none query

```
//return nothing
$sf->Enq('use candy_shop;');
```

Execute query

```
//return [row1, row2, ...]
$sf->Eq($sql);
```

Execute one row

```
//return the first row by array
$sf->Eor($sql);
```

Execute column

```
//return a column
$sf->Ec($sql);
```

Execute scalar

```
//return a number
$sf->Es($sql);
```

License
-------

[](#license)

The Sweeter-fetch is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT).

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 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 ~0 days

Total

2

Last Release

3674d ago

### Community

Maintainers

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

---

Top Contributors

[![qdladoooo](https://avatars.githubusercontent.com/u/534325?v=4)](https://github.com/qdladoooo "qdladoooo (39 commits)")

---

Tags

fetchpdo-wrappersweeter

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/qdladoooo-sweeter-fetch/health.svg)

```
[![Health](https://phpackages.com/badges/qdladoooo-sweeter-fetch/health.svg)](https://phpackages.com/packages/qdladoooo-sweeter-fetch)
```

###  Alternatives

[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k116.5M113](/packages/jdorn-sql-formatter)[propel/propel1

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

8351.6M87](/packages/propel-propel1)

PHPackages © 2026

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