One sandbox, full product loop

Build it. Run it.
Ship it.

Take a product from its first working idea to a live application—and keep building in the same sandbox.

connected
import { PHPSandbox } from '@phpsandbox/sdk'; const client = new PHPSandbox(token);const sandbox = await client.notebook.create(  'laravel',  { title: 'Inventory API' });
01 / 06A product environment, ready

Start from a configured Laravel sandbox and carry the same environment forward as the product grows.

Laravel 12 / PHP 8.4
The whole product loop

The first run is only the beginning.

Create, configure, run, preview, and publish from the same sandbox.

01

Start with your product

Create a fresh environment from a framework template, fork an existing sandbox, or import the repository you already own.

+ more frameworks
02

Build against a real runtime

Work with files, Composer, terminals, services, secrets, mail, and ports—the actual moving parts of a PHP application.

+ more runtime tools
03

Put a live URL in the loop

Every sandbox can become a working preview. Share the product, test an integration, or make review concrete.

+ more preview controls
04

Launch without starting over

Publish to managed containers, Laravel Cloud, or your own server without leaving the product context.

+ more targets
One sandbox, two interfaces

Use the SDK.
Or open the workspace.

The SDK and browser workspace operate on the same sandbox, so automation and hands-on development share files, services, processes, and state.

  • First-party SDKs for the complete sandbox lifecycle
  • Real-time output, events, and lifecycle control
  • A visual workspace for development and debugging
Read the documentation
acme/inventory-api running
web.phpapi.php
1 <?php
2
3 use Illuminate\Support\Facades\Route;
4
5 Route::get('/health', function () {
6   return ['status' => 'ready'];
7 });
Terminal
$ php artisan testPASS / Tests\Feature\HealthTestTests: 8 passed / Time: 0.31s
Built into real workflows

Where a sandbox becomes useful.

01 / Documentation

Interactive documentation

Let users run package examples with real Composer dependencies directly from the documentation.

02 / Support

Reproducible support

Share the exact code, runtime, and dependency state behind a bug report or integration issue.

03 / Prototyping

Product prototyping

Give developers and automated tools a working environment and live URL for continued iteration.

51,000+people building
206,000+sandboxes created
What people buildPackage demos, reproducible bug reports, working prototypes, and complete products.
PHPSandbox provides a great experience for our users to test the code right from the documentation. And for any new feature or bug report, we can share code and see the result immediately. For code demo with composer dependencies, it’s the best!
Kyle Katarn
kylekatarnlsMaintainer of Carbon PHP Library
Ready to build?

Start with a sandbox.
Keep building.

Create, run, preview, and publish your product from one environment.

Loading templates

You can also reach out on Twitter or Discord if you need help.