A CLI tool and library that bridges PHP with Prisma ORM, enabling PHP developers to use Prisma's schema-based database modeling and client generation. Current stable version 4.4.10, actively maintained (weekly updates). Key differentiators: generates PHP client classes from Prisma schema, supports multiple databases, and provides a familiar Laravel-style query builder. Requires Node.js for Prisma CLI and PHP 8.0+.
npm install create-prisma-php-appNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows project setup using create script, schema definition with Prisma, and PHP client usage for creating a record.
Migrate require() calls to import statements.
Change import { PrismaModel } to import { PHPPrismaModel }.Run `npm install -g prisma` or `npm install --save-dev prisma` in your project.
Use `import PrismaPHP from 'create-prisma-php-app'` and call as `PrismaPHP()`.
Upgrade your PHP runtime to 8.0 or higher.
Run `npm install prisma` in your project directory.
Run `npx prisma generate` and ensure `vendor/autoload.php` is required.
Use `PrismaPHP(['schema' => 'path/to/schema.prisma'])` instead of a string path.