Skip to content

fix: harden canonical PHP quickstart - #8

Merged
karlwaldman merged 1 commit into
mainfrom
fix/php-sdk-canonical-quickstart
Jul 19, 2026
Merged

fix: harden canonical PHP quickstart#8
karlwaldman merged 1 commit into
mainfrom
fix/php-sdk-canonical-quickstart

Conversation

@karlwaldman

Copy link
Copy Markdown
Member

Closes #7

What changed

  • reject malformed or empty successful latest-price responses instead of creating a zero-valued Price
  • preserve the production source field and correct no-code singleton documentation
  • publish the canonical OILPRICEAPI_KEY Brent first request with missing-config, 401, 403, and 429 recovery
  • replace mutable product claims with canonical product-facts, pricing, catalog, and data-rights links
  • build a Composer ZIP, install it into a clean project, and execute the packaged example against fixtures
  • add a single strict production smoke, a public-claim drift test, and v2.1.0 metadata

Verification

  • vendor/bin/phpunit (20 tests, 196 assertions)
  • composer validate --strict
  • composer audit --no-interaction
  • PHP syntax lint across src, tests, and examples
  • SDK_VERSION=v2.1.0 ./scripts/clean-install-smoke.sh
  • strict production examples/smoke.php with the rotated synthetic smoke identity
  • git diff --check

@coderabbitai

coderabbitai Bot commented Jul 19, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@karlwaldman, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 6 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 185937f0-9636-4475-9052-cd74730dd781

📥 Commits

Reviewing files that changed from the base of the PR and between 62ca766 and bec778b.

📒 Files selected for processing (14)
  • .github/workflows/test.yml
  • CHANGELOG.md
  • README.md
  • composer.json
  • examples/quickstart.php
  • examples/smoke.php
  • scripts/clean-install-smoke.sh
  • src/Client.php
  • src/Exception/AuthenticationException.php
  • src/Exception/RateLimitException.php
  • src/Price.php
  • tests/ClientTest.php
  • tests/PublicClaimsTest.php
  • tests/fixtures/router.php
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/php-sdk-canonical-quickstart

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@karlwaldman
karlwaldman merged commit 27c8c1e into main Jul 19, 2026
6 checks passed
@karlwaldman
karlwaldman deleted the fix/php-sdk-canonical-quickstart branch July 19, 2026 14:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[P1][SDK] Align PHP package metadata and quickstarts with canonical product facts

1 participant