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)