2017 © Pedro Peláez
 

library firestore-php

Firestore SDK for PHP without gRPC

image

morrislaptop/firestore-php

Firestore SDK for PHP without gRPC

  • Monday, June 11, 2018
  • by morrislaptop
  • Repository
  • 3 Watchers
  • 5 Stars
  • 62 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 9 Versions
  • 1450 % Grown

The README.md

Firestore SDK for PHP without gRPC

Current version Build Status, (*1)

@todo

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

Installation

The recommended way to install is with Composer., (*2)

composer require morrislaptop/firestore-php

Usage

The library aims to replicate the API signature of Google's PHP API., (*3)

Sample usage:, (*4)


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

The Versions

11/06 2018
09/06 2018

v2.1.1

2.1.1.0 https://github.com/morrislaptop/firestore-php

Firestore SDK for PHP without gRPC

  Sources   Download

MIT

The Requires

 

The Development Requires

database api google sdk firestore

08/06 2018

v2.1.0

2.1.0.0 https://github.com/morrislaptop/firestore-php

Firestore SDK for PHP without gRPC

  Sources   Download

MIT

The Requires

 

The Development Requires

database api google sdk firestore

08/06 2018

v2.0.0

2.0.0.0 https://github.com/morrislaptop/firestore-php

Firestore SDK for PHP without gRPC

  Sources   Download

MIT

The Requires

 

The Development Requires

database api google sdk firestore

08/06 2018

v1.2.0

1.2.0.0 https://github.com/morrislaptop/firestore-php

Firestore SDK for PHP without gRPC

  Sources   Download

MIT

The Requires

 

The Development Requires

database api google sdk firestore

03/06 2018

v1.1.0

1.1.0.0 https://github.com/morrislaptop/firestore-php

Firestore SDK for PHP without gRPC

  Sources   Download

MIT

The Requires

 

The Development Requires

database api google sdk firestore

24/05 2018

v1.0.1

1.0.1.0 https://github.com/morrislaptop/firestore-php

Firestore SDK for PHP without gRPC

  Sources   Download

MIT

The Requires

 

The Development Requires

database api google sdk firestore

24/05 2018

v1.0.0

1.0.0.0 https://github.com/morrislaptop/firestore-php

Firestore SDK for PHP without gRPC

  Sources   Download

MIT

The Requires

 

The Development Requires

database api google sdk firestore