Skip to content

php-http-client is another project and needs sub-package name #1018

Description

@centurianii

php-http-client is at 3.13.0 version currently and as is a different project with it's own versioning I think the next is confusing:

use SendGrid\Client;

which implies a direct relation with the current library.

I think a better solution is to create a sub-namespace like:

use SendGrid\Http\Client;

that makes psr4 autoloading much easier as now you can point the package loader to any folder you like and put there the project's files:

http-client
     |_ Exception
     |         |_ InvalidRequest.php
     |_ Client.php
     |_ Response.php

I experiment this now in a sub-folder using my own autoloading function.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions