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

ActiveLaravel-pakcage[Database &amp; ORM](/categories/database)

mwpeng/firestore-php-laravel
============================

Laravel wrapper of morrislaptop/firestore-php

v0.1.12(7y ago)0182MITPHP

Since Dec 18Pushed 7y ago1 watchersCompare

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

READMEChangelog (4)Dependencies (3)Versions (7)Used By (0)

firestore-php-laravel
=====================

[](#firestore-php-laravel)

Laravel wrapper of [morrislaptop/firestore-php](https://github.com/morrislaptop/firestore-php).

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

[](#installation)

Require this package with composer.

```
composer require mwpeng/firestore-php-laravel
```

Setup
-----

[](#setup)

Publish package config file.

```
php artisan vendor:publish --provider=Mwpeng\FirestorePhpLaravel\ServiceProvider
```

Config Path to the Firebase JSON key file.

```
'firebase-credentials' => env('FIREBASE_CREDENTIALS', null),
```

Usage:
------

[](#usage)

Check [morrislaptop/firestore-php](https://github.com/morrislaptop/firestore-php) for Methods available.

### 1. Inject firestore to class constructor.

[](#1-inject-firestore-to-class-constructor)

```
