diff --git a/CHANGELOG.md b/CHANGELOG.md index f3b161a..61c9865 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,19 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [1.0.1] - 2025-07-25 + +### Fixed +- Added PHPCS inline directives (`phpcs:disable`) to all source, example, and test files for WordPress Plugin Check compatibility +- Framework-agnostic library files now pass WordPress coding standards when bundled as a vendor dependency in WordPress plugins +- Suppressed `WordPress.Security.EscapeOutput.ExceptionNotEscaped` — exceptions are not WordPress output in this library +- Suppressed `WordPress.WP.AlternativeFunctions` — native PHP functions (cURL, json_encode, file_get_contents) are required for framework independence +- Suppressed `WordPress.PHP.DiscouragedPHPFunctions` — base64_encode/urlencode required for OAuth and API operations +- Suppressed `WordPress.PHP.NoSilencedErrors` — @unlink used for temporary file cleanup in HttpClient +- Suppressed `Universal.Operators.DisallowShortTernary` — short ternary intentionally used for concise null/empty handling + +## [1.0.0] + ### Added - Framework-agnostic PHP core for social media publishing - Platform abstractions with `PlatformInterface` and `PlatformResponseInterface` diff --git a/composer.json b/composer.json index b8a5fbe..d5d49be 100644 --- a/composer.json +++ b/composer.json @@ -27,7 +27,9 @@ "ext-json": "*" }, "require-dev": { - "phpunit/phpunit": "^10.0|^11.0" + "dealerdirect/phpcodesniffer-composer-installer": "^1.2", + "phpunit/phpunit": "^10.0|^11.0", + "wp-coding-standards/wpcs": "^3.3" }, "autoload": { "psr-4": { @@ -42,6 +44,9 @@ "minimum-stability": "stable", "prefer-stable": true, "config": { - "sort-packages": true + "sort-packages": true, + "allow-plugins": { + "dealerdirect/phpcodesniffer-composer-installer": true + } } } diff --git a/examples/mock/01_creating_posts.php b/examples/mock/01_creating_posts.php index 4eed302..42fcf1b 100644 --- a/examples/mock/01_creating_posts.php +++ b/examples/mock/01_creating_posts.php @@ -1,4 +1,5 @@