Download the PHP package bestelmar/firestore-php without Composer
On this page you can find all versions of the php package bestelmar/firestore-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package firestore-php
Firestore Client for PHP
This package is totally based on Firestore REST API
Authentication / Generate API Key
1) Visit Google Cloud Firestore API
2) Select your desired project.
3) Select Credentials
from left menu and select API Key
from Server key or Create your own credentials
Installation
You can install the package via composer:
or install it by adding it to composer.json
then run composer update
Dependencies
The bindings require the following extensions in order to work properly:
If you use Composer, these dependencies should be handled automatically. If you install manually, you'll want to make sure that these extensions are available.
Usage
Initialization
Adding a document
NOTE: Pass third argument if you want your custom document id to set else auto-id will generate it for you.
Or
And..
Inserting/Updating a document
- Update (Merge) or Insert document
Following will merge document (if exist) else insert the data.
NOTE: Passing 3rd argument as a boolean true will force check that document must exist and vice-versa in order to perform update operation.
For example: If you want to update document only if exist else MrShan0\PHPFirestore\Exceptions\Client\NotFound
(Exception) will be thrown.
- Overwirte or Insert document
Deleting a document
List documents with pagination (or custom parameters)
Note: You can pass custom parameters as supported by firestore list document
Get field from document
Firebase Authentication
Sign in with Email and Password.
Sign in Anonymously.
Retrieve Auth Token
TODO
- [x] Added delete attribute support.
- [x] Add Support for Object, Boolean, Null, String, Integer, Array, Timestamp, GeoPoint, Bytes
- [x] Add Exception Handling.
- [x] List all documents.
- [ ] List all collections.
- [x] Filters and pagination support.
- [ ] Structured Query support.
- [ ] Transaction support.
- [ ] Indexes support.
- [ ] Entire collection delete support.
Testing
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- Ahsaan Muhammad Yousuf
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of firestore-php with dependencies
ext-curl Version *
ext-json Version *