# PHP
Because application is running inside containers you should always interact with PHP inside the application container.
This means that instead of running CLI commands like php or artisan should be replaced by sail php and sail artisan respectively.
# Configuring PHPStorm
If you are using PHPStorm you need to configure PHPStorm to use container's PHP interpreter instead of local one.
In PHPStorm open Preferences... > PHP, choose ... button on the right side of Cli Interpreter

Click + and select From Docker, Vagrant...

Choose Docker Compose and fill everything like below:

Save, give that interpreter a name like Docker PHP and close.
Lastly, make sure back in Preferences... > PHP Docker PHP interpreter is selected from options.
Now PHPStorm will use Docker container's PHP interpreter for running all PHPStorm tools.