PHPackages                             jonathan-martz/pocketbase-php-sdk - 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. [API Development](/categories/api)
4. /
5. jonathan-martz/pocketbase-php-sdk

ActiveLibrary[API Development](/categories/api)

jonathan-martz/pocketbase-php-sdk
=================================

2.0.0.x-dev(1y ago)111.6k2[5 issues](https://github.com/jonathan-martz/pocketbase-php-sdk/issues)[2 PRs](https://github.com/jonathan-martz/pocketbase-php-sdk/pulls)MITPHPPHP ^8.3|^8.4CI failing

Since Jan 12Pushed 4mo ago2 watchersCompare

[ Source](https://github.com/jonathan-martz/pocketbase-php-sdk)[ Packagist](https://packagist.org/packages/jonathan-martz/pocketbase-php-sdk)[ RSS](/packages/jonathan-martz-pocketbase-php-sdk/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (2)Versions (8)Used By (0)

### Php Sdk for Pocketbase

[](#php-sdk-for-pocketbase)

---

##### This Repository are in active Development

[](#this-repository-are-in-active-development)

---

---

### Gitlab is the one for Packagist, but they should both be up to Date.

[](#gitlab-is-the-one-for-packagist-but-they-should-both-be-up-to-date)

##### Github:

[](#github-httpsgithubcomjonathan-martzpocketbase-php-sdk)

##### Gitlab:

[](#gitlab-httpsgitlabjonathan-martzdesoftwareentwicklungpocketbase-php-sdk)

---

```
composer require jonathan-martz/pocketbase-php-sdk
```

```
// Example init and use
use \Pb\Client as pb;
$pb = new pb('https://admin.pocketbase.dev');
var_dump($pb->collection('users')->getList());
```

---

#### Crud adapted from js-sdk to php

[](#crud-adapted-from-js-sdk-to-php)

```
// Returns a paginated records list.
$pb->collection(collectionIdOrName)->getList(int $page = 1, int $perPage = 30, array $queryParams = []);

// Returns a list with all records batch fetched at once.
$pb->collection(collectionIdOrName)->getFullList(int $batch = 200, array $queryParams = []);

// Returns the first found record matching the specified filter.
$pb->collection(collectionIdOrName)->getFirstListItem(string $filter, array $queryParams = []);

// Returns a single record by its id.
$pb->collection(collectionIdOrName)->getOne(string $recordId, array $queryParams = []);

// Creates (aka. register) a new record.
$pb->collection(collectionIdOrName)->create(array  $bodyParams = [], array $queryParams = []);

// Updates an existing record by its id.
$pb->collection(collectionIdOrName)->update(string $recordId, array $bodyParams = [],array $queryParams = []);

// Deletes a single record by its id.
$pb->collection(collectionIdOrName)->delete(string $recordId, array $queryParams = []);

// Custom Logic
$pb->collection(collectionIdOrName)->upload(string $recordId, string $field, string $filepath);
```

###  Health Score

38

—

LowBetter than 83% of packages

Maintenance54

Moderate activity, may be stable

Popularity28

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 94.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 ~75 days

Total

4

Last Release

148d ago

PHP version history (2 changes)v2.0.0-betaPHP ^8.3|^8.4

v2.0.1-betaPHP ^8.1|^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/763cd2b3e99d5733f50d7952449c1073ae44ccc35549876b82aba8f137f23c42?d=identicon)[jonathan-martz](/maintainers/jonathan-martz)

---

Top Contributors

[![jonathan-martz](https://avatars.githubusercontent.com/u/20771653?v=4)](https://github.com/jonathan-martz "jonathan-martz (33 commits)")[![HolyHugo](https://avatars.githubusercontent.com/u/24476825?v=4)](https://github.com/HolyHugo "HolyHugo (2 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/jonathan-martz-pocketbase-php-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/jonathan-martz-pocketbase-php-sdk/health.svg)](https://phpackages.com/packages/jonathan-martz-pocketbase-php-sdk)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35916.4M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24016.2M20](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172445.0k15](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93459.5k6](/packages/botman-driver-telegram)

PHPackages © 2026

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