PHPackages                             adrienbrault/hermes2pro - 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. adrienbrault/hermes2pro

ActiveLibrary

adrienbrault/hermes2pro
=======================

1853PHP

Since May 7Pushed 2y ago1 watchersCompare

[ Source](https://github.com/adrienbrault/hermes2pro-proxy)[ Packagist](https://packagist.org/packages/adrienbrault/hermes2pro)[ RSS](/packages/adrienbrault-hermes2pro/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

[NousResearch/Hermes-2-Pro-Mistral-7B](https://huggingface.co/NousResearch/Hermes-2-Pro-Mistral-7B) is an open source LLM with great function calling capabilities.

This [PSR-18](https://www.php-fig.org/psr/psr-18/) plugin converts OpenAI API requests/responses that use [function calling](https://platform.openai.com/docs/guides/function-calling) to and from [the Hermes2Pro prompt format](https://huggingface.co/NousResearch/Hermes-2-Pro-Mistral-7B#prompt-format-for-function-calling).

It lets you use Hermes2Pro function calling with the same OpenAI api client code that you currently use.

[An http proxy docker image](#docker-proxy) is available for non PHP projects.

PHP Library
===========

[](#php-library)

Install [ollama](https://ollama.com/) ([docker](https://ollama.com/blog/ollama-is-now-available-as-an-official-docker-image)) and pull the model:

```
$ ollama pull adrienbrault/nous-hermes2pro:Q4_K_M
```

Install [this package](https://packagist.org/packages/adrienbrault/hermes2pro):

```
$ composer require adrienbrault/hermes2pro:@dev
```

Then update your code to use the plugin:

```
use AdrienBrault\Hermes2Pro\Hermes2ProPlugin;
use Http\Client\Common\PluginClient;
use Http\Discovery\Psr18ClientDiscovery;

require_once __DIR__ . '/vendor/autoload.php';

$client = OpenAI::factory()
    ->withApiKey(getenv('OPENAI_API_KEY'))
    ->withBaseUri(sprintf(
        '%s/v1',
        getenv('OLLAMA_HOST') ?: 'http://localhost:11434'
    ))
    ->withHttpClient(
        new PluginClient(
            Psr18ClientDiscovery::find(),
            [
                new Hermes2ProPlugin()
            ]
        )
    )
    ->make()
;
```

Then use `adrienbrault/nous-hermes2pro:Q4_K_M` as the `model` in your chat requests. There are [more tags/quantizations available](https://ollama.com/adrienbrault/nous-hermes2pro/tags).

The model and this plugin supports parallel function calling. Note that streaming is not currently supported.

Note that the plugin is only active if the request/response model starts with `adrienbrault/nous-hermes2pro`.

See [demo/](demo/).

Docker Proxy
============

[](#docker-proxy)

A docker http proxy is available to convert requests/responses to/from the Hermes2Pro format:

```
$ docker run -it --rm \
    -e OPENAI_BASE_URI=http://docker.for.mac.host.internal:11434 \
    -p 11440:80 \
    adrienbrault/hermes2pro-proxy

$ MODEL="adrienbrault/nous-hermes2pro:Q4_K_M" \
    OPENAI_BASE_URI="http://localhost:11440/v1" \
    php demo/openai.php
```

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity18

Early-stage or recently created project

 Bus Factor1

Top contributor holds 88.9% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/014b3653b1f38cb85fa553f23e32a10a9584fee5dc80c7be2d01900202045033?d=identicon)[AdrienBrault](/maintainers/AdrienBrault)

---

Top Contributors

[![adrienbrault](https://avatars.githubusercontent.com/u/611271?v=4)](https://github.com/adrienbrault "adrienbrault (16 commits)")[![goetas](https://avatars.githubusercontent.com/u/776743?v=4)](https://github.com/goetas "goetas (2 commits)")

### Embed Badge

![Health badge](/badges/adrienbrault-hermes2pro/health.svg)

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

PHPackages © 2026

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