PHPackages                             xaryna19/php-pocketbase-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. xaryna19/php-pocketbase-sdk

ActiveLibrary

xaryna19/php-pocketbase-sdk
===========================

00PHP

Since Jul 31Pushed 1y ago1 watchersCompare

[ Source](https://github.com/xaryna19/php-pocketbase-sdk)[ Packagist](https://packagist.org/packages/xaryna19/php-pocketbase-sdk)[ RSS](/packages/xaryna19-php-pocketbase-sdk/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

### Php Sdk for Pocketbase

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

---

##### This Repository are in active Development

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

Based on the PHP Pocketbase SDK jonathan-martz/pocketbase-php-sdk

---

```
composer require xaryna19/php-pocketbase-sdk
```

```
// Example init and use
use \Pb\Client as pb;
$pb = new pb('https://backend-shop.mkay.dev');
var_dump($pb->collection('countries')->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

13

—

LowBetter than 1% of packages

Maintenance28

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity17

Early-stage or recently created project

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/793f234dd015c179ad1f70f3ea919f12f317468c906d3675b0e6b39a617d8fbc?d=identicon)[kmasong](/maintainers/kmasong)

### Embed Badge

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

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

PHPackages © 2026

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