承接 rapttor/grok-api-client 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

rapttor/grok-api-client

最新稳定版本:1.0.0

Composer 安装命令:

composer require rapttor/grok-api-client

包简介

A PHP client library for interacting with xAI's GROK API

README 文档

README

A simple PHP client library for interacting with xAI's GROK API - Based on grok-4 curl example

Installation

Install via Composer:

composer require RapTToR/grok-api-client

Usage

<?php
use RapTToR\Grok\Grok;
$XAI_API_KEY = getenv('XAI_API_KEY');
echo  new Grok($XAI_API_KEY)->chat("What is the meaning of life, the universe, and everything?")->result(0);
?>
  • The library is based on Grok Curl example
  • Does not require any other dependencies

统计信息

  • 总下载量: 8
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-08-17