spryker / app-webhook
AppWebhook 模块
1.0.0
2024-08-02 09:51 UTC
Requires
- php: >=8.1
- spryker/glue-application-extension: ^1.0.0
- spryker/kernel: ^3.30.0
- spryker/log: ^3.0.0
- spryker/symfony: ^3.0.0
- spryker/transfer: ^3.33.0
Requires (Dev)
- codeception/codeception: ^5.0
- codeception/module-asserts: ^3.0
- codeception/module-cli: ^2.0.0
- codeception/module-filesystem: ^3.0.0
- codeception/module-phpbrowser: ^3.0.0
- codeception/module-rest: ^3.0.0
- codeception/module-webdriver: ^3.0.0
- infection/codeception-adapter: ^0.4.3
- infection/infection: ^0.27.8
- phpstan/phpdoc-parser: 1.25.0
- phpstan/phpstan: 1.10.66
- rector/rector: ^0.19.0
- spryker/app-kernel: ^1.0.0
- spryker/code-sniffer: *
- spryker/development: ^3.34.0
- spryker/glue-application: ^1.64
- spryker/message-broker-aws: ^1.7.0
- spryker/propel: *
- spryker/testify: *
- spryker/testify-async-api: ^0.1.4
This package is auto-updated.
Last update: 2024-09-18 11:45:40 UTC
README
提供 SyncAPI 和 AsyncAPI 规范文件以及将 Mini-Framework 转换为应用程序所需的代码。
安装
composer require spryker/app-webhook
配置
应用程序标识符
config/Shared/config_default.php
use Spryker\Shared\AppWebhook\AppConstants;
$config[AppConstants::APP_IDENTIFIER] = getenv('APP_IDENTIFIER') ?: 'hello-world';
测试 AppWebhook
您可以使用 Codeception 习惯性地测试 AppWebhook。在此之前,您需要运行一些命令
composer setup
使用这些命令,您已设置 AppWebhook 并可以开始测试
vendor/bin/codecept build
vendor/bin/codecept run