YOU ARE VIEWING ONE ITEM FROM THE AICRIER FEED

grok-sdk-php, grok-sdk-laravel v0.2.13 replace xai-sdk packages

AICrier tracks AI developer news across Product Hunt, GitHub, Hacker News, YouTube, X, arXiv, and more. This page keeps the article you opened front and center while giving you a path into the live feed.

// WHAT AICRIER DOES

7+

TRACKED FEEDS

24/7

SCRAPED FEED

Short summaries, external links, screenshots, relevance scoring, tags, and featured picks for AI builders.

grok-sdk-php, grok-sdk-laravel v0.2.13 replace xai-sdk packages
OPEN LINK ↗
// 15m agoPRODUCT UPDATE

grok-sdk-php, grok-sdk-laravel v0.2.13 replace xai-sdk packages

Unofficial PHP and Laravel ports of xAI's SpaceXSI TypeScript SDK have been rebranded from xai-sdk-php and xai-sdk-laravel to track the upstream @grok/sdk 0.2.13 package rename. Maintained by tibor-src with zero third-party runtime dependencies beyond standard PHP 8.2+ extensions, the libraries mirror the full Grok REST API surface including Responses, streaming, voice, batch, and media generation.

// ANALYSIS

Tracking xAI's fast-moving TypeScript SDK version-for-version in PHP is an ambitious commitment while xAI is still settling its pre-1.0 naming from SpaceXSI to Grok. For PHP teams that need full API parity rather than a thin chat wrapper, though, this clean-break release is unusually thorough.

  • –Mirrors upstream's package shift within 24 hours: xAI made @grok/sdk its primary npm package in v0.2.13 on December 1, and tibor-src shipped matching PHP and Laravel Composer packages the next day to keep strict version parity with xai-org/xai-sdk-ts.
  • –Clean break rather than a drop-in swap: Despite the one-line Composer install pitch, existing xai-sdk-php and xai-sdk-laravel users must update namespaces to TiborSrc\GrokSdkPhp and TiborSrc\GrokSdkLaravel, replace removed SpaceXSI and SpaceXAI classes and facades with Grok, and migrate config/xai.php to config/grok.php—though XAI_API_KEY and GROK_API_KEY environment variables stay compatible.
  • –Broader surface area than common Laravel alternatives: While Laravel's first-party laravel/ai and community wrappers like grok-php/laravel focus on standard chat abstractions, grok-sdk-php exposes the entire SpaceXSI REST surface—including the Responses API with encrypted stateless reasoning, image and video generation/editing, Voice TTS and transcription, Files, Batch, and tokenization—requiring only PHP 8.2+ curl, json, and mbstring.
  • –Early-stage maintenance risk applies: Both repositories are unofficial, experimental pre-1.0 ports maintained by a solo developer with minimal community adoption so far, so production teams should pin exact versions and watch upstream changes closely.
// TAGS
grok-sdk-phpgrok-sdk-laravelgroksdkapillmopen-sourcedevtool

DISCOVERED

15m ago

2026-12-02

PUBLISHED

22m ago

2026-12-02

RELEVANCE

7/ 10

AUTHOR

tibor_tee