PHPackages                             morrislaptop/firestore-php - 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. morrislaptop/firestore-php

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

morrislaptop/firestore-php
==========================

Firestore SDK for PHP without gRPC

v2.2.2(5y ago)6928.6k↓50%32[6 issues](https://github.com/morrislaptop/firestore-php/issues)[4 PRs](https://github.com/morrislaptop/firestore-php/pulls)1MITPHP

Since May 24Pushed 3y ago4 watchersCompare

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

READMEChangelog (10)Dependencies (5)Versions (18)Used By (1)

Firestore SDK for PHP without gRPC
==================================

[](#firestore-sdk-for-php-without-grpc)

[![Current version](https://camo.githubusercontent.com/035d9f2671f1e510e55462048f423fce52f64d394e3dc97b67a294db6dc00556/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d6f72726973616c70746f702f6669726573746f72652d7068702e737667)](https://packagist.org/packages/morrislaptop/firestore-php)[![Build Status](https://camo.githubusercontent.com/f2ad85f6297d2799c8f291c01174ae6525fe02c154045c5b9e35ef6db0b6adbd/68747470733a2f2f696d672e736869656c64732e696f2f636972636c6563692f70726f6a6563742f6d6f727269736c6170746f702f6669726573746f72652d7068702e737667)](https://circleci.com/gh/morrislaptop/firestore-php)

@todo
-----

[](#todo)

- Get
- Set
- Delete
- Add
- Transactions (beginTransaction, commit, rollback)
- Reference value support
- Batch Get
- List Documents
- Query
- Order
- Limit
- Indexes (create, delete, list, get)

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

[](#installation)

The recommended way to install is with Composer.

```
composer require morrislaptop/firestore-php

```

Usage
-----

[](#usage)

The library aims to replicate the API signature of [Google's PHP API](https://googlecloudplatform.github.io/google-cloud-php/#/docs/cloud-firestore/v0.11.0/firestore/readme).

Sample usage:

```
use Morrislaptop\Firestore\Factory;
use Kreait\Firebase\ServiceAccount;

// This assumes that you have placed the Firebase credentials in the same directory
// as this PHP file.
$serviceAccount = ServiceAccount::fromJsonFile(__DIR__ . '/google-service-account.json');

$firestore = (new Factory)
    ->withServiceAccount($serviceAccount)
    ->createFirestore();

$collection = $firestore->collection('users');
$user = $collection->document('123456');

// Save a document
$user->set(['name' => 'morrislaptop', 'role' => 'developer']);

// Get a document
$snap = $user->snapshot();
echo $snap['name']; // morrislaptop
```

###  Health Score

42

—

FairBetter than 90% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity42

Moderate usage in the ecosystem

Community19

Small or concentrated contributor base

Maturity72

Established project with proven stability

 Bus Factor1

Top contributor holds 97.1% 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 ~88 days

Recently: every ~239 days

Total

12

Last Release

1942d ago

Major Versions

v1.2.0 → v2.0.02018-06-08

### Community

Maintainers

![](https://www.gravatar.com/avatar/ecf933ed5c8b3e08c1880734166cb32d9e66eb50b01bb91ff74018c3e4b61058?d=identicon)[morrislaptop](/maintainers/morrislaptop)

---

Top Contributors

[![morrislaptop](https://avatars.githubusercontent.com/u/67807?v=4)](https://github.com/morrislaptop "morrislaptop (33 commits)")[![neilvs](https://avatars.githubusercontent.com/u/7439665?v=4)](https://github.com/neilvs "neilvs (1 commits)")

---

Tags

apisdkgoogledatabasefirestore

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/morrislaptop-firestore-php/health.svg)

```
[![Health](https://phpackages.com/badges/morrislaptop-firestore-php/health.svg)](https://phpackages.com/packages/morrislaptop-firestore-php)
```

###  Alternatives

[kreait/firebase-php

Firebase Admin SDK

2.4k39.7M72](/packages/kreait-firebase-php)[kreait/laravel-firebase

A Laravel package for the Firebase PHP Admin SDK

1.3k16.5M42](/packages/kreait-laravel-firebase)[kreait/firebase-bundle

Symfony Bundle for the Firebase Admin SDK

1534.7M2](/packages/kreait-firebase-bundle)[tomwalder/php-gds

Google Cloud Datastore Library for PHP. Also Firestore in Datastore mode.

161174.0k5](/packages/tomwalder-php-gds)[codewithkyrian/chromadb-laravel

ChromaDB Laravel is a Laravel client for the Chroma Open Source Embedding Database

144.1k](/packages/codewithkyrian-chromadb-laravel)

PHPackages © 2026

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