Re: [RFC][DISCUSSION] Object-oriented curl API v2

From: Date: Fri, 27 Jun 2025 17:01:56 +0000
Subject: Re: [RFC][DISCUSSION] Object-oriented curl API v2
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-127776@lists.php.net to get a copy of this message
Hi all,


> On 26/06/2025 18:21, Eric Norris wrote:
>> I know that in the prior discussion, Rowan Tommins had a vision for a
>> high-level API (https://externals.io/message/122371#122424)
> 
> 
> I think calling it a "vision for a high-level API" is making it sound far more
> grandiose than what I suggested. What I suggested, and would still like to see, is a small number of
> additional methods, for setting really common options in a more user-friendly way.

To avoid drifting too much from existing expectations about how such a cURL interface *ought* to
look (as vs what happened with the URL RFC) it would be wise to examine existing userland work
earlier rather than later.

A brief search at https://packagist.org/?query=curl
reveals https://packagist.org/packages/php-curl-class/php-curl-class
and https://packagist.org/packages/curl/curl
right away, each with millions of downloads already.

These and other userland offerings should help inform the first steps, in any case.


-- pmj


Thread (38 messages)

« previous php.internals (#127776) next »