dongshang6062 2018-10-25 05:45
浏览 66

Pusher PHP API:生产中要保留的最小文件是什么?

Using Pusher in Dev with the PHP APi (pusher-php-server) works fine, but I installed it with composer and it brought a large amount of files including tests and many more stuff that seem irrelevant for my Prod deployment.

Is there an easy way to find out what files can be removed and how to use the PHP API without the fancy autoload etc, to slim out the number of files to be kept for Prod? I currently have in mu Pusher API root:

  • composer
  • paragonie
  • psr
  • pusher
  • autoload.php

For a total of little less than 3MB.

I figured the core of it is placed here: ./pusher/pusher/pusher-php-server/src but I have no idea how to use it properly since currently my php code does:

require '../ext/pusher/autoload.php';
$pusher = new Pusher\Pusher([...]);
$pusher->trigger([...]);

(this code is called every time a message needs to be sent to the channel)

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 MapReduce结果输出到HBase,一直连接不上MySQL
    • ¥15 扩散模型sd.webui使用时报错“Nonetype”
    • ¥15 stm32流水灯+呼吸灯+外部中断按键
    • ¥15 将二维数组,按照假设的规定,如0/1/0 == "4",把对应列位置写成一个字符并打印输出该字符
    • ¥15 NX MCD仿真与博途通讯不了啥情况
    • ¥15 win11家庭中文版安装docker遇到Hyper-V启用失败解决办法整理
    • ¥15 gradio的web端页面格式不对的问题
    • ¥15 求大家看看Nonce如何配置
    • ¥15 Matlab怎么求解含参的二重积分?
    • ¥15 苹果手机突然连不上wifi了?