PHPackages                             justim/access - 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. justim/access

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

justim/access
=============

A simple MySQL wrapper optimized for bigger data sets

v1.23.1(1mo ago)14.5k↓34.6%2[1 PRs](https://github.com/justim/access/pulls)MITPHPPHP ^8.1CI passing

Since Jun 6Pushed 3w ago2 watchersCompare

[ Source](https://github.com/justim/access)[ Packagist](https://packagist.org/packages/justim/access)[ RSS](/packages/justim-access/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (10)Dependencies (25)Versions (63)Used By (0)

Access
======

[](#access)

[![Continuous Integration](https://github.com/justim/access/actions/workflows/continuous-integration.yml/badge.svg)](https://github.com/justim/access/actions/workflows/continuous-integration.yml) [![Coverage Status](https://camo.githubusercontent.com/64094bd6a8247bd6158bd2d968e9c17b96797d9d63acd899fb92f81d0194e726/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f6a757374696d2f6163636573732f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/justim/access?branch=master)

> A simple MySQL wrapper optimized for bigger data sets

Quick usage
-----------

[](#quick-usage)

```
class User extends Entity {
    // ..
}

$db = Database::create('some PDO connection string');
$user = $db->findOne(User::class, 1);

$user->setName('Dave');
$db->update($user);

$users = $db->findBy(User::class, ['name' => 'Dave']);

// uses a generator
foreach ($users as $user) {
    // $user is an instance of User
}
```

Features
--------

[](#features)

- Uses a PDO prepared statement pool for faster queries
- Optimized for bulk queries (ie. easy to fetch collections of collections)
- Easily present your entities as JSON without worrying about n+1 queries

Requirements
------------

[](#requirements)

- PHP 8.1, or higher
- PDO extension

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

[](#installation)

- Available at [Packagist](https://packagist.org/packages/justim/access)
- `composer require justim/access=dev-master`

Docs
----

[](#docs)

For now, see the tests for usage.

Nice to have
------------

[](#nice-to-have)

- For now only MySQL and SQLite is supported, it would be nice to have support for more RDMSs, like Postgres
- Tests are currently run with an in-memory SQLite database, a MySQL database would be better

Final notes
-----------

[](#final-notes)

Currently used in a single production product, features are tied to this product.

###  Health Score

58

—

FairBetter than 98% of packages

Maintenance94

Actively maintained with recent releases

Popularity26

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity82

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 97.3% 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 ~43 days

Recently: every ~55 days

Total

60

Last Release

31d ago

PHP version history (6 changes)v1.0.0PHP ^7.2

v1.3.0PHP ^7.3

v1.5.0PHP ^7.4

v1.9.3PHP ^7.4 | ^8.0

v1.15.0PHP ^8.0

v1.18.0PHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/5addc442589060d2c83836f11b851560df560ac2da1156b20ba0e93788467c7a?d=identicon)[justim](/maintainers/justim)

---

Top Contributors

[![justim](https://avatars.githubusercontent.com/u/757292?v=4)](https://github.com/justim "justim (253 commits)")[![yrodchyn](https://avatars.githubusercontent.com/u/80677954?v=4)](https://github.com/yrodchyn "yrodchyn (4 commits)")[![krlove](https://avatars.githubusercontent.com/u/1562405?v=4)](https://github.com/krlove "krlove (2 commits)")[![sviridan](https://avatars.githubusercontent.com/u/17551963?v=4)](https://github.com/sviridan "sviridan (1 commits)")

---

Tags

databasemysqlphp

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Type Coverage Yes

### Embed Badge

![Health badge](/badges/justim-access/health.svg)

```
[![Health](https://phpackages.com/badges/justim-access/health.svg)](https://phpackages.com/packages/justim-access)
```

###  Alternatives

[symfony/symfony

The Symfony PHP framework

31.4k87.2M2.2k](/packages/symfony-symfony)[gedmo/doctrine-extensions

Doctrine behavioral extensions

4.1k124.6M430](/packages/gedmo-doctrine-extensions)[kreait/firebase-php

Firebase Admin SDK

2.4k44.4M86](/packages/kreait-firebase-php)[spomky-labs/otphp

A PHP library for generating one time passwords according to RFC 4226 (HOTP Algorithm) and the RFC 6238 (TOTP Algorithm) and compatible with Google Authenticator

1.5k50.3M168](/packages/spomky-labs-otphp)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[nesbot/carbon

An API extension for DateTime that supports 281 different languages.

185701.7M5.6k](/packages/nesbot-carbon)

PHPackages © 2026

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