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
其他信息
- 授权协议: MIT
- 更新时间: 2025-08-17