Skip to content

docs: update Laravel PHP SDK guide#16937

Merged
marandaneto merged 1 commit into
masterfrom
docs/update-laravel-php-sdk-docs
May 21, 2026
Merged

docs: update Laravel PHP SDK guide#16937
marandaneto merged 1 commit into
masterfrom
docs/update-laravel-php-sdk-docs

Conversation

@marandaneto
Copy link
Copy Markdown
Member

Changes

Updates the Laravel library docs to:

  • Clarify that Laravel integrates through the PostHog PHP SDK and link to the PHP SDK docs for shared API details.
  • Document environment variables and Laravel services config initialization.
  • Add request context middleware for applying PostHog tracing headers from client SDKs such as PostHog JS, without including a frontend setup example.
  • Add Laravel exception reporting guidance and a note about flushing in long-running processes.

Checklist

  • I've read the docs and/or content style guides.
  • Words are spelled using American English
  • Use relative URLs for internal links
  • I've checked the pages added or changed in the Vercel preview build
  • If I moved a page, I added a redirect in vercel.json

@marandaneto marandaneto requested a review from a team May 20, 2026 16:48
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 20, 2026

Deploy preview

Status Details Updated (UTC)
🟢 Ready View preview May 20, 2026 05:03PM

@github-actions
Copy link
Copy Markdown
Contributor

Vale prose linter → found 0 errors, 5 warnings, 0 suggestions in your markdown

Full report → Copy the linter results into an LLM to batch-fix issues.

Linter being weird? Update the rules!

contents/docs/libraries/laravel.md — 0 errors, 5 warnings, 0 suggestions
Line Severity Message Rule
3:15 warning Use 'Laravel' instead of 'laravel'. Vale.Terms
6:185 warning Capitalize 'Feature Flags' for PostHog's product. Use 'feature flags' for the general industry concept. PostHogBase.ProductNames
100:4 warning 'Error tracking in Laravel' heading should be in sentence case, and product names should be capitalized. PostHogBase.SentenceCase
100:4 warning Capitalize 'Error Tracking' for PostHog's product. Use 'Error tracking' for the general industry concept. PostHogBase.ProductNames
102:23 warning Capitalize 'Error Tracking' for PostHog's product. Use 'error tracking' for the general industry concept. PostHogBase.ProductNames

@marandaneto marandaneto merged commit 2327dce into master May 21, 2026
20 checks passed
@marandaneto marandaneto deleted the docs/update-laravel-php-sdk-docs branch May 21, 2026 08:31
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.

2 participants