papi-ai/laravel
Laravel integration for Papi AI that connects your application to AI services with minimal setup. Includes a service provider, configuration options, and a clean, expressive API for sending prompts and handling AI responses from anywhere in your Laravel app.
papi-core — publishable config, env-var credentials, service-container binding, Laravel HTTP client wiring, centralized error handling. It adds no product capability on its own. The real "buy" decision is papi-core; this package is an optional convenience layer that saves roughly days of glue code, not weeks. Frame the decision that way or we'll approve the wrong dependency.papi-core >= 0.15.3, where the PHP 8.5 fixes live. So this maps to a milestone question — "when can we move to PHP 8.5?" — and the paired bump is a prerequisite to schedule before the runtime upgrade, not after it.Consider it when:
papi-core.papi-core in the same change window, with a committed lockfile and explicit version constraints.Look elsewhere when:
papi-core; then we're taking on two dependencies and two release cadences to reach one capability.Executives. This is a small, MIT-licensed Laravel add-on that connects our app to an AI API with minimal custom code. The honest framing: it's pre-1.0 (v0.15.x) with a very small public footprint, so it's a low-cost, reversible convenience — worth a short spike if AI endpoints are on the roadmap, not worth a platform commitment. The one thing it genuinely unblocks today is PHP 8.5 readiness: its latest release exists only to require a newer companion library that carries the 8.5 fixes. Recommendation: timeboxed evaluation, no exclusive dependency, revisit at 1.0.
Engineering. It's a thin Laravel bridge over papi-core — service provider, publishable config, env-based credentials, container binding, centralized HTTP error handling on top of Laravel's HTTP client. v0.15.1 adds no features; it only hard-requires papi-core >= 0.15.3. Sequence accordingly: bump papi-core first as its own PR with its own test pass, then bump this package, then diff the entire composer.lock — the transitive floor is the likeliest source of a surprise regression. Pin explicitly rather than floating (0.x minor bumps may break), and don't let an automated update rule drift it. Estimate roughly half a day if resolution is clean, more if papi-core is new to the codebase.
Caveat to state openly. The evidence base is one release note, a one-paragraph description, and repository metadata (1 star, 0 dependents, no stated support policy). Feature surface, security posture, supported PHP/Laravel matrix, and maintainer responsiveness are all unverified. Confirm composer.json constraints and release history before any go decision.
How can I help you explore Laravel packages today?