← ClaudeAtlas

openui-forge-phplisted

OpenUI generative UI with a PHP (Laravel 13.x) backend. Forwards OpenAI's SSE stream verbatim via response()->stream().
OthmanAdi/openui-forge · ★ 22 · AI & Automation · score 79
Install: claude install-skill OthmanAdi/openui-forge
# OpenUI Forge — PHP Build generative UI apps with a React frontend + Laravel backend. Streams the OpenAI API's native SSE response straight through `response()->stream()`. ## Activation Triggers - "openui php", "openui laravel", "openui php backend" - "generative ui php", "laravel streaming ui backend" ## Prerequisites - Node.js >= 22 (24 LTS recommended) + React >= 18.3.1 (19+ recommended) (frontend) - PHP >= 8.3 + Laravel 13.x (backend; Laravel 13 requires PHP 8.3 minimum and supports 8.3 through 8.5) - Composer; `guzzlehttp/guzzle` ships with Laravel and backs the `Http` facade (no extra dependency to call OpenAI) - `OPENAI_API_KEY` environment variable set ## Quick Start 1. Create the React frontend and install OpenUI deps: ```bash npm install @openuidev/react-ui @openuidev/react-headless @openuidev/react-lang lucide-react zod ``` 2. Generate the system prompt: ```bash npx @openuidev/cli generate ./src/lib/library.ts --out backend/storage/app/system-prompt.txt ``` 3. Create the Laravel backend (see Full Code below). On a fresh app, enable API routes once with `php artisan install:api`. 4. Run: `php artisan serve` on `:8000`, frontend on `:3000` ## Full Code ### Backend: `composer.json` (require block) ```json { "require": { "php": "^8.3", "laravel/framework": "^13.0" } } ``` > Laravel bundles `guzzlehttp/guzzle`, so the `Http` facade can call OpenAI with no extra package. The OpenAI SSE passthrough below needs nothing beyond the framewo