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 安装svn网络有问题怎么办
    • ¥15 Python爬取指定微博话题下的内容,保存为txt
    • ¥15 vue2登录调用后端接口如何实现
    • ¥65 永磁型步进电机PID算法
    • ¥15 sqlite 附加(attach database)加密数据库时,返回26是什么原因呢?
    • ¥88 找成都本地经验丰富懂小程序开发的技术大咖
    • ¥15 如何处理复杂数据表格的除法运算
    • ¥15 如何用stc8h1k08的片子做485数据透传的功能?(关键词-串口)
    • ¥15 有兄弟姐妹会用word插图功能制作类似citespace的图片吗?
    • ¥15 latex怎么处理论文引理引用参考文献