Skip to content

Jev directory

Laya Php

A Laravel-ready PHP SDK for Laya, a self-hosted multilingual decision engine described as a Jev AI alternative: classify text in 100+ languages and get typed enums, ints and bools back without paying per-token fees.
Stars
106
Language
PHP
License
APACHE-2.0
Reading time
2 min
Published by
Community
Author
marcreichel
Last verified
Oct 2026

Highlights

  • Describes Laya, the engine it wraps, as a Jev AI alternative: a multilingual decision engine answering choice, score and yes/no questions in one forward pass.
  • A $laya->decide() call returns a readonly class of typed enums, ints and bools, so answers flow straight into application code.
  • Self-hosted: the README says text never leaves your infrastructure and there are no per-token fees.
  • Every answer carries a confidence you can threshold to send unsure cases to a human; a built-in fake supports unit tests without a running server.
  • Badges show Laravel 13+, PHPStan level max and 100% coverage, and the SDK talks to Laya's laya-serve Python server.

Quickstart

php
$triage = $laya->decide('Hi, we were billed twice for March. Refund it today or we cancel.', Triage::class);

$triage->department;
$triage->churn;

Watch out

README reviewed 2026-10-17; the excerpt truncates mid-sentence at the laya-serve documentation link, shows no composer install command or version requirements, and gives no latency or accuracy numbers for the engine it wraps.

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