commit 18133958d6d8aa4655ed16c80098bc2889b8cc1f Author: ci Date: Mon Aug 31 23:56:34 2026 +0800 Add PHP 7.4 demo for Jenkins diff --git a/README.md b/README.md new file mode 100644 index 0000000..937a75b --- /dev/null +++ b/README.md @@ -0,0 +1,8 @@ +# php-demo + +PHP **7.4** demo for Gitea + Jenkins on this server. + +```bash +/www/server/php/74/bin/php -l src/Hello.php +/www/server/php/74/bin/php tests/hello_test.php +``` diff --git a/composer.json b/composer.json new file mode 100644 index 0000000..f9a3392 --- /dev/null +++ b/composer.json @@ -0,0 +1,12 @@ +{ + "name": "ci/php-demo", + "description": "Tiny PHP 7.4 demo built by Jenkins", + "require": { + "php": ">=7.4 <8.0" + }, + "autoload": { + "psr-4": { + "Demo\\": "src/" + } + } +} diff --git a/src/Hello.php b/src/Hello.php new file mode 100644 index 0000000..3eaecc9 --- /dev/null +++ b/src/Hello.php @@ -0,0 +1,16 @@ +