PHPackages                             aisdk/meta - 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. aisdk/meta

ActiveLibrary

aisdk/meta
==========

Official Meta provider for the PHP AI SDK.

v0.8.2(1mo ago)01MITPHPPHP ^8.3CI passing

Since Jul 15Pushed 1mo agoCompare

[ Source](https://github.com/phpaisdk/meta)[ Packagist](https://packagist.org/packages/aisdk/meta)[ Docs](https://github.com/phpaisdk/meta)[ RSS](/packages/aisdk-meta/feed)WikiDiscussions main Synced 2w ago

READMEChangelog (3)Dependencies (7)Versions (4)Used By (0)

aisdk/meta
==========

[](#aisdkmeta)

[![GitHub Workflow Status](https://camo.githubusercontent.com/d676643dc5d3e4c8a504af6ca8bdb555abee2a662361f760f26834908dbb88e1/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f706870616973646b2f6d6574612f74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d5465737473)](https://github.com/phpaisdk/meta/actions)[![Total Downloads](https://camo.githubusercontent.com/788184e048d7a4b0ea52bde0beb2bc5468bae402c398c84bb2df1b4c12069feb/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f616973646b2f6d657461)](https://packagist.org/packages/aisdk/meta)[![Latest Version](https://camo.githubusercontent.com/a4103677dcb181c2f2cce1a790d2921a83eff0f4ef06d02ca37a86e0e6586421/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f616973646b2f6d657461)](https://packagist.org/packages/aisdk/meta)[![License](https://camo.githubusercontent.com/969eed6a3b1a8da6a2e4ea095dfdb98833794a14a0a61e000e428b66f31c15c4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f616973646b2f6d657461)](https://packagist.org/packages/aisdk/meta)[![Why PHP in 2026](https://camo.githubusercontent.com/d2b9305e630caf7daae4ca023de39ece0b885c37461629d42961533f00868b76/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5768795f5048502d696e5f323032362d3741383645383f7374796c653d666c61742d737175617265266c6162656c436f6c6f723d313831383162)](https://whyphp.dev)

---

Official Meta provider for the PHP AI SDK. Uses the Meta Model API's OpenAI-compatible chat completions endpoint.

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

[](#installation)

```
composer require aisdk/meta
```

Basic Usage
-----------

[](#basic-usage)

```
use AiSdk\Generate;
use AiSdk\Meta;

$result = Generate::text('Write a PHP function that reverses a string.')
    ->model(Meta::model('muse-spark-1.1'))
    ->run();

echo $result->text;
```

Configuration
-------------

[](#configuration)

VariableDescriptionDefault`MODEL_API_KEY`Meta Model API key for authenticationRequired`META_BASE_URL`Base URL for API requests`https://api.meta.ai/v1`Supported Capabilities
----------------------

[](#supported-capabilities)

CapabilitySupportText generationNative through Chat CompletionsStreamingNative through Chat CompletionsTool callingNative through Chat CompletionsStructured outputNative (`json_schema`)Reasoning effortNative (`reasoning_effort`)Text inputNativeImage inputNative (URLs and data URLs)This package uses Meta's Chat Completions API. For Responses API-only features such as search grounding, files, and encrypted reasoning replay, use Meta's Responses API directly. Provider-specific fields can be passed through `providerOptions('meta', [...])`. Model IDs are opaque strings and Meta remains the authority on model availability.

Testing
-------

[](#testing)

```
composer test:all
```

Documentation
-------------

[](#documentation)

- [PHP AI SDK documentation](https://phpaisdk.com/docs)
- [Meta documentation](https://phpaisdk.com/docs/meta)

Community
---------

[](#community)

- [Contributing](https://github.com/phpaisdk/.github/blob/main/CONTRIBUTING.md)
- [Support](https://github.com/phpaisdk/.github/blob/main/SUPPORT.md)
- For private security reports, email .

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance90

Actively maintained with recent releases

Popularity2

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

3

Last Release

48d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ef29d1962da41e7526023f215cf844494e209b2fd163742084cb919a3b508021?d=identicon)[aisdk](/maintainers/aisdk)

---

Top Contributors

[![RanaMoizHaider](https://avatars.githubusercontent.com/u/58527494?v=4)](https://github.com/RanaMoizHaider "RanaMoizHaider (5 commits)")

---

Tags

aimetallmllamaopenai-compatibleaisdk

###  Code Quality

TestsPest

Static AnalysisPHPStan, Rector

Code StyleLaravel Pint

Type Coverage Yes

### Embed Badge

![Health badge](/badges/aisdk-meta/health.svg)

```
[![Health](https://phpackages.com/badges/aisdk-meta/health.svg)](https://phpackages.com/packages/aisdk-meta)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
