
Product
Socket Zero Introduces Automated Remediation PRs
Put vulnerability remediation on autopilot with automated security patches and intelligent dependency upgrades across your GitHub repositories.
谷歌fcm推送
composer require since/fcm dev-master
use since\Fcm;
class Index
{
public function index(){
$config=[
'key'=>'谷歌服务器的key',
'project_id'=>'项目id',
'google_server'=>'firebase的json文件路径'
];
$register_token='设备获取到的token';
# 订阅
$topic_name = "news"; //自定义的主题名称 字符串
$Fcm= new Fcm($config);
//$Fcm->addManyTopic($topic_name,$register_tokens)//添加到多设备主题
$Fcm->addTopic($topic_name,$register_token);//推送单设备主题
$sendDate=[
'data'=>["story_id" => 'story_12345'],
'notification'=>[
'title' => 'title',
'body' => 'New news story available.',
'image'=>'https://xxx.xxx.com/xxx.png',
],
'topic'=>$topic_name,
];
$result=$Fcm->sendTopicMessage($sendDate); //主题推送消息
}
}
FAQs
FCM
We found that since/fcm demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.

Product
Put vulnerability remediation on autopilot with automated security patches and intelligent dependency upgrades across your GitHub repositories.

Product
Socket Zero automates vulnerability remediation with upgrades and targeted patches, including fixes for 100% of known, patchable RubyGems CVEs.

Product
Explore Socket’s redesigned Alerts UI, multi-branch repository monitoring, and new tools for resolving findings, searching scans, and filtering security alerts.