feat: max-bot-test initial — full surface coverage
Some checks failed
Deploy Max Bot Test / deploy (push) Failing after 3s

- Slim 4 PSR-15 webhook, PHP-DI 7, Symfony Console 8
- 13 update handlers, 30+ command scenarios, all 7 button types
- Composer pulls pkirillw/max-bot-api-php from GitHub vcs
- Multi-stage Dockerfile (php-fpm 8.4-alpine) + nginx
- docker-compose.yml targets server (npm_default external)
- docker-compose.override.yml for local dev (gitignored)
- .gitea/workflows/deploy.yml mirrors ghost-blog-bot pattern

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
pkirillw
2026-06-18 00:01:06 +03:00
commit 9385fbdd6e
60 changed files with 7191 additions and 0 deletions

48
composer.json Normal file
View File

@@ -0,0 +1,48 @@
{
"name": "pkirillw/max-bot-test",
"description": "Test bot that exercises the full surface area of pkirillw/max-bot-api-php.",
"type": "project",
"license": "Apache-2.0",
"keywords": ["max", "bot", "messenger", "test", "demo"],
"require": {
"php": "^8.4",
"pkirillw/max-bot-api-php": "dev-main@dev",
"slim/slim": "^4.0",
"nyholm/psr7": "^1.8",
"guzzlehttp/guzzle": "^7.0",
"guzzlehttp/psr7": "^2.0",
"symfony/console": "^7.0 || ^8.0",
"symfony/dotenv": "^7.0 || ^8.0",
"monolog/monolog": "^3.0",
"php-di/php-di": "^7.0",
"psr/log": "^3.0"
},
"require-dev": {
"phpunit/phpunit": "^10.0 || ^11.0"
},
"repositories": {
"max-bot-api-php": {
"type": "vcs",
"url": "https://github.com/pkirillw/max-bot-api-php.git"
}
},
"autoload": {
"psr-4": {
"App\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"App\\Tests\\": "tests/"
}
},
"bin": [
"bin/console"
],
"config": {
"sort-packages": true,
"allow-plugins": {}
},
"minimum-stability": "stable",
"prefer-stable": true
}