Files
twilio-wp-plugin/composer.json
Claude d5a09fb337 Bump PHP to 8.1 minimum and resolve composer.lock in CI
The Gitea release build failed because aws/aws-sdk-php 3.371+ requires PHP
>= 8.1, while composer.json's platform was pinned to 8.0. Production runs
PHP 8.5.4, so bumping the minimum to 8.1 is well within the runtime envelope.

Changes:
  composer.json                 — require php >=8.1, platform.php = 8.1
  .gitea/workflows/release.yml  — setup-php now installs PHP 8.1
                                  added pre-install step that runs
                                  `composer update --no-install` only when
                                  composer.lock is absent. If a lock file is
                                  ever committed later, CI uses it directly
                                  for deterministic installs instead of
                                  regenerating.
  twilio-wp-plugin.php          — added "Requires PHP: 8.1" header so
                                  WordPress itself enforces the minimum
  README.md, CLAUDE.md          — doc bump from 8.0 to 8.1, with note that
                                  the AWS SDK is the constraint driver

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-05 09:20:06 -07:00

33 lines
798 B
JSON

{
"name": "twilio-wp/twilio-wp-plugin",
"description": "WordPress plugin for Twilio voice and SMS integration - REQUIRES Twilio SDK",
"type": "wordpress-plugin",
"require": {
"php": ">=8.1",
"twilio/sdk": "^8.7",
"aws/aws-sdk-php": "^3.0"
},
"suggest": {
"aws/aws-sdk-php": "Required for Amazon SNS SMS provider support"
},
"autoload": {
"classmap": [
"includes/",
"admin/"
]
},
"config": {
"optimize-autoloader": true,
"platform": {
"php": "8.1"
}
},
"scripts": {
"post-install-cmd": [
"echo 'Twilio SDK installed successfully!'"
],
"install-sdk": [
"./install-twilio-sdk.sh"
]
}
}