chrissnyder2337 / sylius-geo-fixture-generator
Generates yaml for countries and provinces by leveraging CommerceGuys\Addressing for use within Sylius fixtures.
Installs: 2
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/chrissnyder2337/sylius-geo-fixture-generator
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