PHPackages                             rkzack/akit - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. rkzack/akit

ActiveLibrary[API Development](/categories/api)

rkzack/akit
===========

Lightweight PHP 8.4 toolkit for the Anthropic API — zero production dependencies.

v1.0.0(2mo ago)01MITPHPPHP ^8.4

Since May 25Pushed 2mo agoCompare

[ Source](https://github.com/rkzack/akit)[ Packagist](https://packagist.org/packages/rkzack/akit)[ Docs](https://github.com/rkzack/akit)[ RSS](/packages/rkzack-akit/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (2)Versions (2)Used By (0)

akit — Anthropic Kit for PHP
============================

[](#akit--anthropic-kit-for-php)

> Lightweight PHP 8.4 toolkit for building AI-powered applications with the Anthropic API.

**Zero production dependencies.** Uses only PHP's built-in `curl` and `json` extensions. Fully typed with PHP 8.4 features: readonly classes, enums, named arguments, and `array_find`.

---

Requirements
------------

[](#requirements)

- PHP 8.4+
- `ext-curl`
- `ext-json`
- An [Anthropic API key](https://console.anthropic.com/)

Installation
------------

[](#installation)

```
composer require rkzack/akit
```

Copy `.env.example` to `.env` and add your key:

```
cp .env.example .env
# then edit .env and set ANTHROPIC_API_KEY=sk-ant-...
```

> `vendor/` is generated by Composer — keep it in `.gitignore` and never edit it directly. Commit `composer.lock`; teammates run `composer install` to get identical versions.

---

Quick Start
-----------

[](#quick-start)

```
