This is a simple proof of concept about how consume and process a SOAP web service in PHP with laravel
- Docker Desktop
Clone the repo locally:
git clone https://github.com/hemersonvarela/api_quote_demo.git
cd api_quote_demo/Install PHP dependencies (composer install)
docker run --rm --interactive --tty --volume $PWD:/app composer:2.3 installSetup app configuration
cp .env.example .envif you have a db server running over port 3306 add below parameter to the .env file
FORWARD_DB_PORT=3367Set a bash alias for sail
alias sail='[ -f sail ] && bash sail || bash vendor/bin/sail'Start sail services
sail up -dGenerate application key
sail artisan key:generateRun database migrations
sail artisan migrateRun database seeders
sail artisan db:seedRun unit test
sail artisan testOpen URL in your browser
http://api_qoute_demo.localhost/api/v1/quote