Comments (5)
Wow, didn't know that- great! Any chance for tagging a stable 3.0 to use it with?
from php-proxy.
What is a PR?
from php-proxy.
What is a PR?
A pull request? Didn't know what else to call it ;)
from php-proxy.
You can use the psr-http-message-bridge to convert Symfony requests: https://github.com/symfony/psr-http-message-bridge
use Symfony\Bridge\PsrHttpMessage\Factory\HttpFoundationFactory;
$httpFoundationFactory = new HttpFoundationFactory();
// convert a Request
// $psrRequest is an instance of Psr\Http\Message\ServerRequestInterface
$symfonyRequest = $httpFoundationFactory->createRequest($psrRequest);
// convert a Response
// $psrResponse is an instance of Psr\Http\Message\ResponseInterface
$symfonyResponse = $httpFoundationFactory->createResponse($psrResponse);
from php-proxy.
Same question, My project has dependences for
"symfony/http-foundation": "^3.1"
When i try install via composer get error:
- jenssegers/proxy v2.2.1 requires symfony/http-foundation ~2.6
satisfiable by symfony/http-foundation[2.6.x-dev,.....................v2.8.9]
but these conflict with your requirements or minimum-stability.
Some solution for use composer and no-conflicts ?
Edit:
I solve by upgrating to ^3.0.0-beta2' [based on zend and not http foundation]
from php-proxy.
Related Issues (20)
- Class ServerRequestFactory not found HOT 5
- Problems with POST and forms HOT 4
- stress test exception!!
- Fatal error: Uncaught Error: Class 'Zend\Diactoros\Response\SapiEmitter' not found HOT 1
- Port gets lost on forwarded webpage.
- Zend\Diactoros\Response\SapiEmitter has been depricated HOT 4
- How can I send basic authentication with request? HOT 1
- HTTP ERROR 500 HOT 1
- Here's an alternative for Laravel 7, or PHP only:
- upload file proxy invalid HOT 2
- Need example how to change response body HOT 1
- Doesn't work with Laravel 8 HOT 3
- .
- EmitterException: Output has been emitted previously HOT 1
- Response of url to a varible
- POST form_params is not passed down/proxied at all
- Skip Ajax Requests
- Urls not redirected.
- How to forward to different Port?
- Failed opening required 'vendor/autoload.php'
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-proxy.