{"id":14972152,"url":"https://github.com/justim/access","last_synced_at":"2025-10-26T18:31:35.548Z","repository":{"id":45005382,"uuid":"190244304","full_name":"justim/access","owner":"justim","description":"A simple MySQL wrapper optimized for bigger data sets","archived":false,"fork":false,"pushed_at":"2024-11-20T10:17:57.000Z","size":843,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-31T22:11:24.287Z","etag":null,"topics":["database","mysql","php"],"latest_commit_sha":null,"homepage":"https://access.justim.net/docs","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/justim.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-06-04T16:56:42.000Z","updated_at":"2024-11-20T10:17:56.000Z","dependencies_parsed_at":"2023-11-06T11:40:39.879Z","dependency_job_id":"d0d3266a-3047-4e09-a13d-b9e373bfdb27","html_url":"https://github.com/justim/access","commit_stats":{"total_commits":196,"total_committers":3,"mean_commits":65.33333333333333,"dds":"0.015306122448979553","last_synced_commit":"fc3004f4bb76d135c9490af557da702523d8652d"},"previous_names":[],"tags_count":51,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justim%2Faccess","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justim%2Faccess/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justim%2Faccess/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justim%2Faccess/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/justim","download_url":"https://codeload.github.com/justim/access/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238386069,"owners_count":19463291,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["database","mysql","php"],"created_at":"2024-09-24T13:46:28.194Z","updated_at":"2025-10-26T18:31:35.541Z","avatar_url":"https://github.com/justim.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Access\n[![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://coveralls.io/repos/github/justim/access/badge.svg?branch=master)](https://coveralls.io/github/justim/access?branch=master)\n\n\u003e A simple MySQL wrapper optimized for bigger data sets\n\n## Quick usage\n\n```php\nclass User extends Entity {\n    // ..\n}\n\n$db = Database::create('some PDO connection string');\n$user = $db-\u003efindOne(User::class, 1);\n\n$user-\u003esetName('Dave');\n$db-\u003eupdate($user);\n\n$users = $db-\u003efindBy(User::class, ['name' =\u003e 'Dave']);\n\n// uses a generator\nforeach ($users as $user) {\n    // $user is an instance of User\n}\n```\n\n## Features\n\n- Uses a PDO prepared statement pool for faster queries\n- Optimized for bulk queries (ie. easy to fetch collections of collections)\n- Easily present your entities as JSON without worrying about n+1 queries\n\n## Requirements\n\n- PHP 8.1, or higher\n- PDO extension\n\n## Installation\n\n- Available at [Packagist](https://packagist.org/packages/justim/access)\n- `composer require justim/access=dev-master`\n\n## Docs\n\nFor now, see the tests for usage.\n\n## Nice to have\n\n- For now only MySQL and SQLite is supported, it would be nice to have support for more RDMSs, like Postgres\n- Tests are currently run with an in-memory SQLite database, a MySQL database would be better\n\n## Final notes\n\nCurrently used in a single production product, features are tied to this product.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjustim%2Faccess","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjustim%2Faccess","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjustim%2Faccess/lists"}