> ## Documentation Index
> Fetch the complete documentation index at: https://hoopdev-update-to-meta-tags.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# PHP Artisan

> Interact with the Artisan console or execute ad-hoc scripts.

## Prerequisites

To get the most out of this guide, you will need to:

* Either [create an account in our managed instance](https://use.hoop.dev) or [deploy your own hoop.dev instance](/getting-started/installation/overview)
* You must be your account administrator to perform the following commands

## Configuration

To proxy the `php artisan tinker` command, execute the following command.

```bash
hoop run --name artisan-demo --command 'php /path/to/artisan tinker'
```

<Info>
  If the command returns an exit code 1 when interacting via tinker.
  Configure the PsySH by disabling pcnl support:

  <AccordionGroup>
    <Accordion title="Configure Psysh">
      ```sh
      cat - > ~/.config/psysh/config.php <<EOF
      <?php
      return [
          'usePcntl' => false,
      ];
      EOF
      ```
    </Accordion>
  </AccordionGroup>
</Info>

## How to Use

Users can now connect and perform ad-hoc executions via Webapp.

```bash
hoop connect artisan-demo
```
