Example Symfony project:
- import data from csv
- use messenger to process rows from csv
- build form based on imported data
- create api platform endpoints
Local environment based on Warden.
Test env: https://symfony-form.greenrivers.pl/order.
- PHP 8.1
- PHPUnit 9
- Symfony 6.3
- API Platform 3.2
- MariaDB 10.6
- RabbitMQ 3.11
Sample csv file:
id,product,price,category,manufacturer_company,manufacturer_tax_id,manufacturer_city,manufacturer_postcode,manufacturer_street,manufacturer_street_number
1,Creme De Menthe Green,888.4,"Doors, Frames & Hardware",Blogtags,5421468682,Arroio Grande,96330-000,Waywood,76
Import file with command:
php bin/console app:import-data <path_to_csv_file>Run worker:
php bin/console messenger:consume asyncPlace an order from: https://app.symfony.test/order.
API Platform endpoints (auth based on USER_IDENTIFIER env): https://app.symfony.test/api.
Run command:
./vendor/bin/phpunit