Package: commerce-sylius
Generated from api/packages/commerce-sylius
Source: api/packages/commerce-sylius. The sections after the README are extracted from the code on every docs build.
README
Section titled “README”The Sylius 2.3 adapter of the commerce package (ADR 0131, 0133; documentation: developers/commerce-sylius).
SyliusProviderimplementsCommerceProviderand the capabilitiesReportsOrderEvents,ReconcilesOrders,InspectsCatalogueandListsOrdersover the Sylius Admin API, bound to the tenant’s channel (commerce.channel). Select it withCOMMERCE_PROVIDER=sylius.SyliusClientsigns in as the one admin API user (COMMERCE_SYLIUS_ADMIN_EMAIL,COMMERCE_SYLIUS_ADMIN_PASSWORD), caches the token, renews it once on a 401 and talks to the fixedCOMMERCE_SYLIUS_URL. Credentials and tokens never appear in an error message.- Product codes are
ul-<channel>-<type>-<id>with a variant<code>-v; products are disabled, never deleted.
Tests: tests/Feature runs against an in-memory Sylius (tests/Support/FakeSylius.php, shapes recorded in
tests/fixtures). tests/Live needs a real Sylius (compose profile commerce):
COMMERCE_SYLIUS_LIVE_URL=http://sylius:8080 COMMERCE_SYLIUS_LIVE_ADMIN_EMAIL=... COMMERCE_SYLIUS_LIVE_ADMIN_PASSWORD=... \ ./vendor/bin/phpunit --testsuite commerce-syliusEach live run creates a channel of its own and only ever adds data: use a throwaway database.
API endpoints
Section titled “API endpoints”None.
Permissions
Section titled “Permissions”None.
Settings
Section titled “Settings”Registered with AdministrableConfig::registerConfig (editable in the admin panel under Configuration → Settings).
None.
Events
Section titled “Events”None.
Artisan commands
Section titled “Artisan commands”| Command | Description | Signature |
|---|---|---|
ulams:commerce:seed-eu-vat |
Create the EU country zones, the e-service tax category and the standard VAT rates in Sylius | ulams:commerce:seed-eu-vat |
Scheduled jobs
Section titled “Scheduled jobs”None.
Environment variables read
Section titled “Environment variables read”COMMERCE_EXTRA_COUNTRIES, COMMERCE_SELLER_COUNTRY, COMMERCE_STRIPE_PUBLISHABLE_KEY, COMMERCE_STRIPE_SECRET_KEY, COMMERCE_SYLIUS_ADMIN_EMAIL, COMMERCE_SYLIUS_ADMIN_PASSWORD, COMMERCE_SYLIUS_CURRENCY, COMMERCE_SYLIUS_OFFLINE, COMMERCE_SYLIUS_URL