Project Starter Kits

Don't start from scratch. Prisma PHP CLI provides optimized, production-ready templates for every use case. Whether you need a simple JSON API or a real-time WebSocket application, there is a kit for you.

Quick Start

Initialize a new project using the interactive CLI or via direct arguments.

terminal
# Interactive mode
npx create-prisma-php-app my-new-project

# Direct starter kit selection
npx create-prisma-php-app my-shop --starter-kit=ecommerce

Available Kits

Select a starter kit that matches your architectural needs.

Basic

id: basic

Minimal PHP backend with zero fluff. Perfect for microservices or learning the basics.

  • Backend Only
  • Minimal Dependencies

Full-Stack

id: fullstack

The standard web application. Includes frontend tooling, styling, and database ORM.

  • Tailwind CSS + PostCSS
  • Prisma ORM + Swagger Docs

REST API

id: api

Headless architecture with containerization support.

  • Docker & Docker Compose
  • Backend Only + Swagger

Real-Time

id: realtime

Event-driven architecture with WebSockets and MCP support pre-configured.

  • WebSocket Server (Ratchet)
  • Model Context Protocol (MCP)

CLI Options

Customize your installation with flags. Flags override starter kit defaults.

Flag Description
--starter-kit=[id] Select a preset (basic, fullstack, api, realtime, ecommerce, blog).
--backend-only Skips frontend assets (JS/CSS) and layout files.
--docker Generates Dockerfile and docker-compose.yml.
--prisma Installs Prisma ORM and initializes schema.
--websocket Adds WebSocket server scaffold and client-side connection code.
--mcp Adds Model Context Protocol server for AI Agent integration.

Custom Starter Kits

You can use any Git repository as a template. This is useful for internal company standards or community templates.

terminal
npx create-prisma-php-app internal-tool \
  --starter-kit=custom \
  --starter-kit-source=https://github.com/your-org/prisma-template.git

Pro Tip

The CLI will automatically handle renaming the project and installing dependencies (Composer & NPM) after cloning your custom source.

Feature Matrix

Feature Basic Fullstack API Realtime
Prisma ORM -
Tailwind CSS - -
Docker - - -
WebSockets - - -