Download the PHP package bahaaodeh/firestore-php without Composer
On this page you can find all versions of the php package bahaaodeh/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:
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..
Updating a document
- Update existing document
NOTE: Passing 3rd argument as a boolean true will indicate that document must exist and vice-versa.
- Overwrite existing document
Deleting a document
TODO
- [x] Added delete attribute support.
- [x] Add Support for Object, Boolean, Null, String, Integer, Array, Timestamp, GeoPoint
- [ ] Add Exception Handling.
- [ ] List all documents and collections.
- [ ] Filters and pagination 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 *