定制 plexcellmedia/firestore 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

plexcellmedia/firestore

Composer 安装命令:

composer require plexcellmedia/firestore

包简介

Firestore wrapper for Laravel app running inside Google App Engine.

README 文档

README

Cloud Firestore library wrapper for Laravel and Firevel compatible with Google App Engine standard environment (PHP 7.3).

Installation

  1. If you dont have firestore project set, check Cloud Firestore quick start
  2. Install package composer require firevel/firestore
  3. Create php.ini in your project directory (where app.yaml is stored) with content:
; enable the gRPC extension
extension=grpc.so

; Ref.: https://github.com/colopl/laravel-spanner/issues/12
grpc.enable_fork_support = 1

If you are going to use library outside Google App Engine please check gRPC installation guide.

Usage

To access FirestoreClient simply use Firestore facade for example:

    $data = [
        'name' => 'Los Angeles',
        'state' => 'CA',
        'country' => 'USA'
    ];
    Firestore::collection('cities')->document('LA')->set($data);

Authentication

Inside Google App Engine Firestore should work without authentication. For usage outside App Engine check Authentication guide.

More

  1. Firestore official documentation.
  2. in-depth usage samples.

统计信息

  • 总下载量: 74
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 4
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-03-11

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固