Documentation
Start here/Introduction•3 min read

Introduction

Understand the workspace, SDK, and shared sandbox model.

Introduction

PHPSandbox provides isolated environments for creating, running, sharing, publishing, and improving products. We call each one a product sandbox.

A product sandbox is not limited to an application or its runtime. It can bring together the code, files, tools, previews, demos, presentations, feedback, and integrations that support a product as it develops.

Today, you can describe what you want to build, start from a framework template, or import a GitHub repository. The sandbox keeps the project’s files, dependencies, runtime configuration, services, processes, and live URLs together as you work.

The product loop

A product sandbox supports the complete product loop:

  1. Create or import a product from a framework template, another sandbox, or a repository.
  2. Build and run it with the files, dependencies, configuration, services, commands, and tests it needs.
  3. Preview and share the product through a live URL.
  4. Publish it to a deployment provider.
  5. Collect feedback and iterate on what you published.

Feedback leads to the next change. Return to the same sandbox, continue working, and publish the next version.

One sandbox, two interfaces

Both interfaces operate on the same sandbox. Work started through the SDK can be inspected and continued in the Workspace.

What can you build?

  • Product prototypes: build an idea, run it, share it, and continue iterating in the same sandbox.
  • Interactive documentation: let people run examples with their real dependencies and runtime.
  • Demos and presentations: present a product in the environment where it actually works.
  • Reproducible support: share the code, configuration, and running state behind a problem.
  • Automated product workflows: let applications, integrations, and agents create and control sandboxes programmatically.

Next steps

Start with the Workspace quickstart to work on a product interactively in the browser.

Start with the SDK quickstart to control a sandbox from an application, workflow, or agent.

Read Sandboxes to understand the environment shared by both interfaces.

Project, workspace and conversation

A project is the working home for a codebase and its conversations, connected repository, secrets and settings. A sandbox holds the files and running processes. The Workspace is the browser screen where you use chat, Preview, Code and other workbench views.

A conversation is one thread of instructions and replies inside a project. Starting another conversation separates its history; it does not create a new codebase. A task tracks work and its runs, often in an isolated sandbox fork that you review before merging.

Find the guide for your next step

What you want to doGuide
Build a first versionWorkspace quickstart
Choose a starter or continue existing codeCreate or import
Explain a change or point at a screenAgent chat and visual editing
Save to GitHub or review a pull requestVersion control
Configure credentialsDependencies and environment
Put an app at a live addressPublishing
Invite teammates or review billingOrganizations, billing and access
Connect external toolsIntegrations
Run isolated or scheduled workTasks and scheduled chats

You do not need to read every guide in order. Choose the one for the task you are doing now.

What’s in the docs

Start here

Understand the workspace, SDK, and shared sandbox model.

Sandbox concepts

Learn how product sandboxes run, persist, preview, and stay secure.

Workspace

Build interactively with files, terminals, dependencies, previews, mail, and Git.

Account and automation

Manage organization access, billing, integrations, tasks and scheduled chats.

SDK

Create, control, observe, and publish sandboxes programmatically.