chrissnyder2337 / sylius-geo-fixture-generator
Generates yaml for countries and provinces by leveraging CommerceGuys\Addressing for use within Sylius fixtures.
v0.2.0
2020-08-18 17:10 UTC
Requires
- php: ^7.4
- commerceguys/addressing: ^1.0
- symfony/console: ^4.0|^5.0
- symfony/yaml: ^4.0|^5.0
README
Command to generate yaml for geographical regions that can be used within sylius fixtures.
Install
git clone chrissnyder2337/sylius-geo-fixture-generator
cd sylius-geo-fixture-generator
composer install
Use:
Generate yaml for all countries:
sylius:generate_geo_yaml
Generate yaml for only a subset of countries (United States, Canada, France, and Italy):
./console sylius:generate_geo_yaml US CA FR IT
Output results to a file:
./console sylius:generate_geo_yaml US CA FR IT > sylius_fixtures.yaml
See all options:
./console sylius:generate_geo_yaml --help