php/php-langspec

Add curl OOP-style to PHP 8

kamil-tekiela opened this issue · 1 comments

I would like to propose adding CUrl classes to PHP 8. Currently we do not have classes apart from CURLFile class. I think that native implementation of curl in OOP would be a very good idea.

I have written PoC of what this class could look like. https://github.com/kamil-tekiela/curl

Native implementation would benefit from:

  • Inheritance
  • Method chaining
  • Error reporting as exceptions
  • Cleaner syntax
IMSoP commented

Hi! This repo is for documenting the language as it is now, not for proposing changes to it. The best place to discuss new features is on the PHP Internals mailing list, and eventually write an RFC.

I look forward to discussing this with you there. :)