Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rafal-kucharski/xmlparserproductimages
https://github.com/rafal-kucharski/xmlparserproductimages
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/rafal-kucharski/xmlparserproductimages
- Owner: rafal-kucharski
- Created: 2023-04-18T15:13:00.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-04-18T21:01:59.000Z (over 1 year ago)
- Last Synced: 2023-12-10T21:28:51.060Z (about 1 year ago)
- Language: PHP
- Size: 204 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# XML Parser Product Images
Laravel application to generate product images with title and price, based on an XML product feed.
## Installation
1. Clone the repository:
```bash
git clone [email protected]:rafal-kucharski/XMLParserProductImages.git laravel-product-image-generator
```2. Change to the project directory:
```bash
cd laravel-product-image-generator
```3. Build and run the Docker container:
```bash
docker-compose up --build -d
```4. Install the Laravel application dependencies:
```bash
docker-compose exec app composer install
```5. Copy the .env.example file to .env:
```bash
cp .env.example .env
```6. Generate the application key:
```bash
docker-compose exec app php artisan key:generate
```## Commands
To generate product images from an XML product feed:
```bash
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.
## Testing
```bash
docker-compose exec app php artisan test
``````bash
docker-compose exec app ./vendor/bin/phpstan analyse
```