Laravel application to generate product images with title and price, based on an XML product feed.
- Clone the repository:
git clone [email protected]:rafal-kucharski/XMLParserProductImages.git laravel-product-image-generator- Change to the project directory:
cd laravel-product-image-generator- Build and run the Docker container:
docker-compose up --build -d- Install the Laravel application dependencies:
docker-compose exec app composer install- Copy the .env.example file to .env:
cp .env.example .env- Generate the application key:
docker-compose exec app php artisan key:generateTo generate product images from an XML product feed:
docker-compose exec app php artisan generate:product-images [source]Replace [source] with the path or URL to the XML product feed. If no source is provided, the default sample_feed.xml in the database/sources directory will be used.
Generated images will be saved in the storage/app/public/generated directory.
docker-compose exec app php artisan testdocker-compose exec app ./vendor/bin/phpstan analyse