npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

prisma-client-php

v4.1.14

Published

Prisma Client PHP is an auto-generated query builder that enables type-safe database access in PHP.

Readme

Prisma Client PHP

Prisma Client PHP is a standalone package that brings Prisma ORM functionality to PHP, allowing seamless interaction with a Prisma-managed database. It enables developers to work with database models using an elegant, type-safe, and class-based approach, similar to how Prisma works with TypeScript.

Introduction

Prisma Client PHP is a key component of the create-prisma-php-app package, which provides a fast and efficient PHP environment for development. It features component-based architecture and file-based routing, similar to Next.js and React, but optimized for PHP.

This package is responsible for integrating and managing the Prisma ORM layer in PHP. It generates convenient PHP classes based on your database models, replicating the behavior of npx prisma generate in TypeScript but tailored for PHP. This allows developers to effortlessly access, modify, and manage database records using a structured and intuitive API.

Prerequisites

Ensure that your system meets the following requirements before installing Prisma Client PHP:

Installation

Follow these steps to install and set up Prisma Client PHP:

  1. Open your terminal.

  2. Generate a new Prisma PHP project in your desired directory by running:

    npx create-prisma-php-app@latest
  3. Remember to chose Prisma PHP ORM when prompted.

  4. Generate Prisma Client PHP classes by running:

    npx ppo generate

This command will convert your schema.prisma models into PHP classes, enabling you to interact with your database using these generated classes.

Adding Prisma Client PHP to an Existing Prisma PHP Project

To integrate Prisma Client PHP into an existing Prisma PHP project, follow these steps:

  1. Open your terminal.

  2. Install Prisma Client PHP globally by running:

    npm install -g prisma-client-php@latest

    This command installs the Prisma Client PHP package globally, making it available for use in any PHP project.

  3. Initialize Prisma Client PHP in your project by running:

    npx ppo init

    This command sets up all necessary packages for Prisma Client PHP to function within your existing project.

Features

  • Auto-Generated PHP Classes: Prisma Client PHP automatically generates PHP classes based on your Prisma schema.
  • Type-Safe Database Queries: Work with your database in a structured and predictable way.
  • Seamless ORM Integration: Leverages Prisma ORM’s powerful query engine within a PHP environment.
  • Component-Based Development: Works alongside create-prisma-php-app, providing a modern development experience.
  • File-Based Routing: Inspired by Next.js and React, simplifying route management in PHP projects.

Contributing

We welcome contributions to Prisma Client PHP! If you have suggestions, bug reports, or pull requests, feel free to open an issue or submit a PR in the repository.

License

Prisma Client PHP is licensed under the MIT License. See the LICENSE file for more details.

Author

Prisma Client PHP is developed and maintained by The Steel Ninja Code.

Contact Us

For support, feedback, or inquiries, reach out to us at [email protected].