Hello,
With the developer team we tried to install the "plugin-helloworld" to understand the creation of new plugins for Mautic.
Here is what we did:
- I first tried to install it via composer (the new recommended method), except that this plugin is not available on packagist.org
- Then I tried to install it by putting it locally next to the project and require it like that.
- But in its dependencies there is a line
mautic/composer-plugin which is not compatible with composer2 (I deleted it)
- Then since I'm on a mautic in version 4.2, I have an error because the function
GuzzleHttp\Psr7\parse_query doesn't exist anymore (I replaced it by the call to the method GuzzleHttp\Psr7\Query::parse)
With all these modifications the data sync seems to work.
I am taking the liberty of making this feedback because I think it is possible to simplify the installation and the handling of this "Hello World" plugin. What do you think about it?
Pierre
Hello,
With the developer team we tried to install the "plugin-helloworld" to understand the creation of new plugins for Mautic.
Here is what we did:
mautic/composer-pluginwhich is not compatible with composer2 (I deleted it)GuzzleHttp\Psr7\parse_querydoesn't exist anymore (I replaced it by the call to the methodGuzzleHttp\Psr7\Query::parse)With all these modifications the data sync seems to work.
I am taking the liberty of making this feedback because I think it is possible to simplify the installation and the handling of this "Hello World" plugin. What do you think about it?
Pierre