Email validation service
Email validation service in PHP using Laravel 8.
Validation features
- Domain
- Regular Expression
- Smtp
- Txt records
Installing dependencies
using docker
docker run --rm -v $(pwd):/app composer/composer install
without docker
*requires composer installed locally.
composer install
Build & Run
using docker-compose
docker-compose build
docker-compose up -d
using docker
docker build -t pedr0rocha/email-validation .
docker run -t -p 8080:80 -e PORT=8080 pedr0rocha/email-validation
validate an email using CURL
curl -X POST http://localhost:8080/api/email/validate -H 'content-type: application/json' -d '{"email": "[email protected]"}'
Format (php-cs-fixer)
composer format
or
docker exec email-validation composer format
Tests
composer test
or
docker exec email-validation composer test