abraham/twitteroauth
60.1
Adequate · 17 November 2026
1.8k
lines of production code
PHP
primary language
5
measurements over time
What this system is
Behavioural changes
Extracted JSON decoding to a dedicated utility class
The JSON decoding logic has been moved from scattered locations into a new \JsonDecoder\ class within the \src/Util\ directory. This change centralizes the handling of JSON strings, ensuring consistent behavior across the application by automatically applying \JSON\_BIGINT\_AS\_STRING\ for PHP versions prior to 5.4 or when integer size is limited, and \JSON\_THROW\_ON\_ERROR\ otherwise. Users benefit from a more robust and maintainable approach to parsing JSON responses, reducing the risk of silent failures or precision loss with large integers.
src/Util · high confidence
Project maintenance and documentation overhaul
This release introduces several structural and documentation updates to improve project hygiene and contributor experience. A Code of Conduct and Contributing guide have been added to clarify community standards and submission processes. The README has been updated to reflect that the library is now in maintenance mode with no new feature development planned, and it specifies support for PHP versions in active support or security-fix-only status. Configuration files for Prettier (targeting PHP 8.0 formatting) and Rector (up to PHP 7.4) have been added to standardize code style and modernization. Additionally, .gitattributes and .gitignore have been configured to exclude development artifacts like tests, vendor directories, and IDE files from distributions, and a LICENSE file has been included.
(repo-wide) · high confidence
Refactor core library into modular classes with API v2 and X.com defaults
The library has been restructured into distinct classes (Config, Consumer, Token, Request, Response, etc.) to improve maintainability and testability. API requests now default to version 2 and target the x.com domain instead of twitter.com. A new Config class centralizes settings such as timeouts, retry counts, gzip encoding, and chunked upload sizes. HTTP communication is abstracted behind an HttpClientInterface with a new CurlHttpClient implementation, and a MockHttpClient is provided for testing with VCR-style fixtures. OAuth signing is handled by a dedicated HmacSha1 class, and the Response class now exposes the last API path, HTTP code, body, and X-rate-limit headers. The library also introduces a TwitterOAuthException with a parsedMessage method for easier error handling.
src · high confidence
Test coverage
Added comprehensive PHPUnit test suite for OAuth, API, and media operations; Added tests for JsonDecoder utility.
Dependencies
Initial project setup with PHP 8.2 and dev tooling
This change introduces the project's dependency manifests (composer.json, package.json) and their corresponding lock files (composer.lock, package-lock.json). It establishes PHP 8.2 as the required runtime and includes composer/ca-bundle as a production dependency. For development, it adds PHPUnit 9, PHP\_CodeSniffer (supporting versions 3 and 4), Rector (versions 0.15.7 and 2.0+), Prettier 3.9.8 with its PHP and package plugins, and Concurrency 10.0.5, along with scripts for linting, fixing, and testing.
(dependencies) · high confidence
Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
How this codebase got here
Score
- CAI 60.5 → 60.1 (-0.4)
- Rubric changed (rubric-2026.11.2 → rubric-2026.11.4) — scores are not directly comparable.
Lenses
- Code Health 69.7 → 64.2 (-5.5)
- Architecture 97.3 → 96.3 (-1.0)
- Maturity 47.0 → 47.0 (0.0)
- Readiness 65.7 → 65.7 (0.0)
- Security 88.0 → 94.7 (+6.7)
Resolved (3)
- Rotate the exposed credentials — git history can't be un-committed
- Secret: generic-api-key (example/index.php~)
- Secret: generic-api-key (example/index.php~)
New (1)
- Off the main sequence: src/Util
Changes since last survey
- 6 commits — 6 feature/other, 0 fixes
By area
- (repo) — 3 commits
- (root) — 3 commits
Notable commits
- change: Bump concurrently from 10.0.6 to 10.0.7
- change: Bump prettier from 3.9.10 to 3.10.1
- change: Bump rector/rector from 2.8.3 to 2.8.4
- change: Merge pull request #1395 from abraham/dependabot/composer/rector/rector-2.8.4
- change: Merge pull request #1396 from abraham/dependabot/npm_and_yarn/prettier-3.10.1
- change: Merge pull request #1397 from abraham/dependabot/npm_and_yarn/concurrently-10.0.7
Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
Survey your own repository
abraham/twitteroauth was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.
About this page
- The score is its most recent published measurement, taken on 17 November 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
- Measured at commit 5637b708c84ac1b5768acb2810c54605c555666a — the exact code this score is about.
- Scored under rubric-2026.11.4 — the same rubric and the same method as every other entry in this index.
- Measured by Canine Code Analyzer (cca.canine.dev) using cca measure-2026.11.85+preprod-eba6548ac50f.