yapro / symfony-http-client-ext
将当前/指定的Symfony HTTP请求转换为curl命令。
v1.0.3
2021-09-27 04:31 UTC
Requires
- php: >=7.1
- symfony/http-client: *
- yapro/helpers: *
Requires (Dev)
This package is not auto-updated.
Last update: 2024-09-25 12:09:39 UTC
README
解决大多数Symfony HttpClient问题的函数。
如何使用
创建一个包含getHttpClient方法的类,例如:src/ExampleClass.php
测试
docker build -t yapro/symfony-http-client-ext:latest -f ./Dockerfile ./ docker run --rm -v $(pwd):/app yapro/symfony-http-client-ext:latest bash -c "cd /app \ && composer install --optimize-autoloader --no-scripts --no-interaction \ && /app/vendor/bin/phpunit /app/tests"
开发
docker build -t yapro/symfony-http-client-ext:latest -f ./Dockerfile ./
docker run -it --rm -v $(pwd):/app -w /app yapro/symfony-http-client-ext:latest bash
composer install -o