mautic / mautic/plugin-helloworld

Problem with the mautic/plugin-helloworld plugin

Open
#7 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
13
Forks
14
PR merge metrics
No merged PRs in 30d

Description

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:

1. I first tried to install it via composer (the new recommended method), except that this plugin is not available on packagist.org
2. Then I tried to install it by putting it locally next to the project and require it like that.
3. But in its dependencies there is a line `mautic/composer-plugin` which is not compatible with composer2 (I deleted it)
4. 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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the Composer installation and Mautic 4.2 compatibility problems described in the issue. Inspect the plugin dependency declaration, the mautic/composer-plugin requirement, and the GuzzleHttp\Psr7\parse_query call; done means the plugin installs through the recommended method and syncs without manual edits.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.