Plugin development and composer

I’m developing a plugin and I’m quite new in that, so I trying to find the best solution for how to integrate composer with my plugin.

The problem is that the SDK which I need is quite big, and when I integrate it on the plugin, the plugin has more than 50mb which is very big and some time on the plugin installation it’s crashed because it is too big. I’m sending many data from the plugin on the Firebase Realtime database, so I need to use kreait/firebase-php SDK for that.

So, I want to find some solution where I can set only the composer.json file inside the plugin folder and after the plugin activation to pull and install the required SDK.

Here is my composer.json file:

“name”: “marko/conn-firebase”,
“description”: “desc”,
“type”: “project”,
“license”: “GNU3”,
“authors”: [
“name”: “Marko”,
“email”: “”
“minimum-stability”: “dev”,
“require”: {
“kreait/firebase-php”: “4.35”,
“php”: “>= 7.2.0”

Any help is welcomed.

Read more here:: Plugin development and composer

Leave a Reply

Your email address will not be published. Required fields are marked *