Skip to content

Add a variable for Composer's vendor directory path #191

@gmclelland

Description

@gmclelland

Short description of the enhancement

Can you add a variable that allows the user to the move Composer's vendor directory?

Current vs. suggested behavior

Currently Processwire autoloads the vendor libraries from the site root /vendor directory. https://github.com/processwire/processwire/blob/50f2834a0ae2a9f9f2ac53439184ebdc04db2f54/index.php#L30

I'm suggesting adding a variable that can be set in config.php, so that the user can move Composer's vendor directory outside of the web root to a place that is not web accessible.

Why would the enhancement be useful to users?

Why would I want to do this? ...for security. I don't want script kiddies trying to scan for/exploit vulnerabilities in my installed php libraries.

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