Skip to content

Autoload the vendor folder from a subfolder #354

@matt-alex-wong

Description

@matt-alex-wong

I am attempting to use the php bindings by following these instructions. When I try to use this code snippet in my php project, I get an error saying Undefined type ‘Intercom\IntercomClient’ via vscode intelephense. After running composer install, I can clearly see that intercom is in the vendor folder.

My INTERCOM_KEY is a variable that I have confirmed loads properly. My other issues is that I cannot even load my environmental variables when using php files in a subfolder. I tried following stack overflow for advice but couldn’t get anywhere

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions