影片:
1.安裝composer
可以參考:http://openopenblog.blogspot.tw/2016/10/composer-in-terminal-curl-ss.html
或是:https://www.youtube.com/watch?v=BnIZVHmROkk
2.安裝firebase-php
Github:https://github.com/ktamas77/firebase-php
//cd到你php的資料夾 cd /Library/WebServer/Documents/test
cd
composer require ktamas77/firebase-php dev-master
3.改composer json
參考:http://firebase-php.readthedocs.io/en/latest/overview.html
{
"require": {
"kreait/firebase-php": "^2.0@beta"
}
}
4.引入
require 'vendor/autoload.php';
沒有留言:
張貼留言