From 3b91adcd404bdb67cf55f4e28696d6b73d2a76d9 Mon Sep 17 00:00:00 2001 From: WLTBAgent Date: Fri, 13 Feb 2026 17:51:49 +0000 Subject: [PATCH] Docs: Add PHP 7.4 compatibility notes - Updated README.md: Changed PHP version from 8.0+ to 7.4+ (8.0+ compatible) - Added PHP compatibility section to STATUS.md - Updated STATUS.md with latest commit information - Documented supported PHP versions (7.4, 8.0, 8.1, 8.2) --- README.md | 2 +- STATUS.md | 30 ++++++++++++++++++++++++++++-- 2 files changed, 29 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 960bf74..d834821 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ Nextcloud internal PHP application providing Google Analytics 4 reporting with A **Type**: Nextcloud PHP App (Internal Application) **Framework**: Nextcloud App Framework (OCP) -**Language**: PHP 8.0+ +**Language**: PHP 7.4+ (compatible with PHP 8.0+) **Database**: Nextcloud Database (via IDBConnection) **Target Nextcloud**: 25.0+ (https://cloud.shortcutsolutions.net) diff --git a/STATUS.md b/STATUS.md index c11cf1e..20f1c63 100644 --- a/STATUS.md +++ b/STATUS.md @@ -43,7 +43,7 @@ **Repository**: git.teamworkapps.com/shortcut/nextcloud-analytics **Branch**: main -**Status**: ✅ PUSHED TO GITEA (2026-02-13 14:50 GMT) +**Status**: ✅ PUSHED TO GITEA (2026-02-13 14:50 GMT, updated 2026-02-13 17:50 GMT) **Issue**: RESOLVED **What Was Pushed**: @@ -52,8 +52,13 @@ - Go module and binary - Nextcloud PHP app (analytics-hub/) - SKILL.md for OpenClaw integration +- PHP 7.4 compatibility fix (commit d87a87b) -**Commit**: f9c49cf - "Phase 3: Initial commit - Nextcloud Analytics Hub Project" +**Latest Commits**: +- f9c49cf - "Phase 3: Initial commit - Nextcloud Analytics Hub Project" +- b727ddd - "Update STATUS.md - Git push completed" +- 254c148 - "Update README.md - Reflect Phase 1-3 completion status" +- d87a87b - "Fix: Add PHP 7.4 compatibility" **URL**: https://git.teamworkapps.com/shortcut/nextcloud-analytics --- @@ -77,6 +82,27 @@ --- +## PHP Compatibility (Updated 2026-02-13) + +**Status**: ✅ PHP 7.4+ Compatible + +**Changes Made**: +- Updated `appinfo/info.xml`: PHP min-version changed from 8.0 to 7.4 +- Replaced all `str_contains()` calls with `strpos() !== false` (PHP 7.4 compatible) + - GoogleAnalyticsService.php: 1 instance + - LLMService.php: 6 instances +- Verified no other PHP 8.0+ features in use + +**Supported PHP Versions**: +- PHP 7.4 ✅ +- PHP 8.0 ✅ +- PHP 8.1 ✅ +- PHP 8.2 ✅ + +**Git Commit**: d87a87b - "Fix: Add PHP 7.4 compatibility" + +--- + ## Deployment Steps ### 1. Clone from Gitea