Skip to content

Package does not comply with PSR-4 #13

@mstralka

Description

@mstralka

Beginning with Composer 2.0, classes that do not comply with the PSR-4 naming standard are not autoloaded.

When I try to use this package with Composer 2.0, it shows this warning:

Class org\nameapi\client\fault\HttpResponseData located in ./vendor/optimaize/nameapi-client-php/src/org/nameapi/client/http/HttpResponseData.php does not comply with psr-4 autoloading standard. Skipping.
Class org\nameapi\client\services\riskdetector\riskdetector\PersonRiskDetectorService located in ./vendor/optimaize/nameapi-client-php/src/org/nameapi/client/services/riskdetector/person/PersonRiskDetectorService.php does not comply with psr-4 autoloading standard. Skipping.

This article does a good job explaining that the folder names need to start with uppercase letters.

I will try to fork the library and submit a PR soon unless this change is already under development?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions