Details about the PHP Integration

Answered

Hello, I tested fleet for a day using a professional PHP project.

I stopped and used PHPStorm back because fleet could not find classes in vendor, autocomplete namespace, create new classes using a template...

Is all of this normal or am I missing something?

0
2 comments

Have you configured php.executable for the workspace? E.g. I have such a configuration:

{
    "php.language.level": "8.2",
    "php.executable": "/usr/local/Cellar/php/8.2.0/bin/php",
    "phpunit.executable": "/Users/Andrey/FleetSamples/phpunit-sample/fleetTesting/vendor/phpunit/phpunit/phpunit",
    "toolchains": [
        {
            "name": "PHP",
            "path": "/usr/local/Cellar/php/8.2.0/bin/",
        }
    ]
}

So, completion and running should work.

There is also a known issue that html highlighting and intellisense does not work in php files: 

FL-12928 HTML Syntax highlighting is not working in PHP files

and a request for Laravel integration:

FL-14260 PHP Laravel Blade template support

0

Hello,

Thanks a lot for your precision. I didn't indeed configure Fleet this way. But this configuration does not specify if Fleet should look into vendor folder or not (and that's my main point).

Thanks also for highlighting known issues (that are not a problem for me though).

0

Please sign in to leave a comment.