Removed obsolete RingCentral/Psr7 dependency by vanodevium · Pull Request #485 · reactphp/http · GitHub
Skip to content

Removed obsolete RingCentral/Psr7 dependency#485

Closed
vanodevium wants to merge 1 commit into
reactphp:1.xfrom
vanodevium:removed-obsolete-ring-central
Closed

Removed obsolete RingCentral/Psr7 dependency#485
vanodevium wants to merge 1 commit into
reactphp:1.xfrom
vanodevium:removed-obsolete-ring-central

Conversation

@vanodevium

Copy link
Copy Markdown

ringcentral/psr7 hasn't been updated in over 5 years.

Need to keep up with the times.

None of the existing PSR7 implementations work on PHP >=5.3

So I collect code from the latest versions of guzzle/psr7 and nyholm/psr7 and made own local realization which can work on PHP 5.3 and upper.

This code passes all tests.

if you're interested, I can continue work on modifying any existing implementation enough to create your own React/Psr7 package.

@SimonFrings

Copy link
Copy Markdown
Member

@vanodevium

Copy link
Copy Markdown
Author

I'm glad that you like it.

With this code, I just showed that, in general, you can get rid of the old dependency and make your own internal implementation.

If you are interested, just let me know and I will write an implementation with my own hands that will not violate any licenses.

Regarding the tests, I do not quite agree: I only changed the base classes that the project classes inherit, but they are already completely covered by tests and there is no new functionality.

Of course, if it is possible to wait for a new version of your project, then it is better to wait.

Thank you for paying attention to my work. Always glad to take part and contribute to the development of great projects!

@vanodevium

Copy link
Copy Markdown
Author

one more thing

I absolutely fully understand what I did in this code, because ringcentral/psr7 is actually a very old fork of the guzzle/psr7

Technically, I just updated it :) with NO breaking changes

And last thing:
maybe it will be nice to integrate psr7-integration-tests

@SimonFrings

Copy link
Copy Markdown
Member

If you are interested, just let me know and I will write an implementation with my own hands that will not violate any licenses.

I like your motivation 👍 @clue told me about his vision on how we can integrate this into ReactPHP's HTTP component, but I think we have to work out the details first and come up with a more solid plan for this. As I said above, we're currently busy with the ReactPHP v3 development, which I think will be a great foundation for a future PSR-7 implementation.

Better support for PSRs is also one of our goals for ReactPHP v3.x as described in our plans for the upcoming major version, not sure how much of it will make it in time for the v3 release tho.

@SimonFrings

Copy link
Copy Markdown
Member

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants