Comments (4)
I don't really have any interest in moving the backend away from cURL because of the low level flexibility it offers. Additionally, I don't find the user-facing API of PSR-7 to be more intuitive than what I have developed here. One glaring issue is the re-use of keys in headers and query strings, which we're not able to do since we are using built-in arrays. Does that warrant wrapping every URL in an object? (I think not.) I'm definitely open to incorporating fixes for edge-cases like that, though they will follow an API style more conducive to this library.
Please do let me know if you have any suggestions for improvement. I'm not trying to stagnate development here, nor do I believe there should be any limitation to the functionality of this library; I do regularly asses wether uncommon use cases deserve incorporation via new code or just additional documentation.
from php-restclient.
My colleague is using your library and I want to review the capabilities of this library before I take this into my own project. PSR-7 is not a hard requirement (for now), but I will assess your library some further before I make a choice.
Thanks for your reply though. I keep an eye on this.
from php-restclient.
Hey @aschwin, just FYI I recently pushed a small update which fully supports the use of repeated headers and parameters, which is something this library didn't support from the PSR-7 spec (aside from syntax). I'll be merging it into the master branch soon.
https://github.com/tcdent/php-restclient/tree/multistatus
from php-restclient.
Just came across this and realised another thing: A HTTP messaging interface and a REST client are two very different things. Ideally you'd separate concerns and make a REST client that is a wrapper around a HTTP messaging interface. So supporting PSR-7 and using a messaging interface implemented with cURL are not necessarily mutually exclusive. :)
from php-restclient.
Related Issues (20)
- Is it PHP 7 compatible? HOT 1
- Empty headers
- Error passing file in parameters HOT 2
- Wiki permissions opened to everyone ? HOT 1
- Error SSL certificate problem: self signed certificate HOT 1
- parse_response - problems parsing HTTP 100 Continue with extra header info HOT 4
- I'm having the same problem when posting messages using Slacks api, it sometimes also return a 100 Continue before the 200 OK. HOT 1
- PHP 8.1 incompatibility HOT 6
- Add a curl debug output HOT 2
- PHP 8.2 deprecated "Dollar sign ($) outside of the curly braces" HOT 2
- Packagist claims that version 0.1.8.2 require PHP >= 7.2 when it should be >=8.0 HOT 2
- The requested URL was rejected. Please consult with your administrator
- Support multipart
- Complete typing
- Metaclass for API definitions
- `async` support
- Take latest REST best practices into account
- Get all tests to pass
- Finish implementing Attributes
- HTTP/3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from php-restclient.