Create a shareable PHP playground
create_sandboxCreates a shareable link to a playground that runs the given code in the browser (PHP in WebAssembly), with no account and nothing to install. Give only the files you change or add: the others stay as in the starting project (see get_starter). Nothing is stored: the code travels inside the link, after the "#". The page asks the visitor before running code received by a link.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes | The files to change or add, by path relative to the project root (e.g. "src/Controller/AccueilController.php"), with their full content. | |
| language | No | Language of the page: "fr" for a French-speaking user, else "en". | en |
| packages | No | Symfony and plain PHP playgrounds: Composer packages to add, from the "packages" list of get_starter (e.g. "symfony/security-bundle", "nesbot/carbon"). For Symfony, their Flex recipe is applied when the page opens. | |
| framework | Yes | The playground: "symfony", "laravel" or "php" (no framework). |