Skip to content

RFC: How hard would it be for me to use Cake\Network\Http\Client outside of a CakePHP context? #6763

@kevinquinnyo

Description

@kevinquinnyo

To clarify, I use Cake\Core for a few CLI scripts and other mini-projects, especially for InstanceConfigTrait which is really handy.

I also tend to write a lot of Api client classes from time to time, and when I'm in the context of a CakePHP application or plugin I always just extend/utilize Cake\Network\Http\Client because it's awesome. But when I'm not, I have to build an Api connector class from scratch usually.

Is there any way for me to use Cake\Network\Http\Client in some standalone php CLI script (for example)? If there's a way to do this, I would love to. It would allow me to standardize the way I write api connector classes in general, and allow me to more easily merge/cannibalize disparate mini-projects in the future into bigger projects, (usually a bigger CakePHP project). It would also allow me to maybe build Api interfaces and adapters for the things I work on and keep things consistent.

Is it too coupled to CakePHP to be reasonably released as a standalone, unlike some of the other sections of the project that you've decoupled, like Core, ORM, etc?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions