yapro/symfony-http-client-ext

Converts the current / specified Symfony http request to a curl command.

v1.0.3 2021-09-27 04:31 UTC

This package is not auto-updated.

Last update: 2024-04-24 09:56:29 UTC


README

Functions to solve most Symfony HttpClient problems.

How to use

Create a class with the getHttpClient method, example: src/ExampleClass.php

Tests

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"

Dev

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