Skip to content

Jev directory

Jev Php

A small PHP 8.1 library, extracted from LLPhant, giving typed value objects for Jev's Noul, Choice and Score answers, with probabilities and token usage. Unofficial and community-built; you supply a TypeSafe API key, or point it at Laya.
Stars
5
Language
PHP
License
LGPL-2.1
Reading time
2 min
Published by
Community
Author
f-lombardo
Last verified
Oct 2026
Languages
PHP
Platforms
API
Capabilities
Open sourceRequires API key

Highlights

  • Typed value objects for Jev's three question types: Noul (yes/no), Choice (label plus probabilities) and Score (rubric grades).
  • NoulAnswer::isTrue(0.80) takes a confidence floor; ScoreAnswer exposes score, confidence, legend and probabilities; every answer includes token usage.
  • Noul questions accept an optional criteria object via NoulCriteria; every answer includes token usage: inputTokens and outputTokens.
  • Reads the key from JEV_API_KEY by default or an explicit JevConfig; LayaConfig points the same classifier at Laya with LAYA_URL and an optional LAYA_API_KEY.
  • PHP ^8.1 with Composer; extracted from the larger LLPhant project and explicitly unofficial, not affiliated with TypeSafe AI.

Quickstart

php
composer require f-lombardo/jev-php

Watch out

Copy reviewed against the repo README on 2026-10-15. The README labels the project unofficial and requires your own TypeSafe API key, and it documents no pricing, latency or benchmark figures. The library focuses on one use case — state in, structured answers out — so retry, batching and streaming behaviour is not described.

Questions about this entry

Short answers drawn from the linked project or page.

From the Jev guides

Original write-ups on what this entry is for.

From the Jev AI model community

Posts from builders shipping with Jev right now.

Follow @typesafeai