Skip to content

Mixpanel autoload? #8

@nrbrook

Description

@nrbrook

I've installed the PHP library via Composer and I noticed that Mixpanel is set to load automatically when the composer autoloader is loaded, from composer.json:

"autoload": {
"files": ["lib/Mixpanel.php"]
}

This is not ideal because the Mixpanel class and all dependencies get automatically loaded all the time in my application, even if I want to do something completely unrelated to mixpanel. Perhaps using psr-0 or classmap would be a better solution? This would mean the class is only loaded when first used and additionally you will not need to manually require other classes in your library as you currently do.

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