mautic/helloworld-bundle
Composer 安装命令:
composer require mautic/helloworld-bundle
包简介
Hello World plugin built on the Integrations framework.
README 文档
README
This is a sample plugin built for Mautic 4 using the integrations framework included in core that was originally based on the Integrations plugin.
An example for Mautic 2 for the Oauth2 client credentials grant can be found here. An example for Mautic 3 for the Oauth2 authorization code grant can be found here.
This can be used as an example in combination with the Integrations plugin wiki.
This plugin has examples for:
- Plugin migrations
- OAuth2 client credentials client
- Configuration UI interfaces
- Syncing Mautic contacts and companies
Mocked Responses
The following places have mocked code to simulate a working plugin:
- \MauticPlugin\HelloWorldBundle\Connection\Config::setIntegrationConfiguration()
- \MauticPlugin\HelloWorldBundle\Connection\Client::getClient()
- \MauticPlugin\HelloWorldBundle\Connection\MockedHandler
Code Expectations and Standards
This plugin also tries to exemplify code standards and expectations.
- Code should be clean (see https://github.com/jupeter/clean-code-php)
- Code should be well covered with unit and/or functional tests
- Code should meet CS standards (includes
symplify/easy-coding-standardwhich can be ran withcomposer fixcs) - Code should pass phpstan standards (run
composer phpstan)
统计信息
- 总下载量: 12
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 13
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0-or-later
- 更新时间: 2024-01-09