Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Opensalestax Bagisto Laravel Package

ejosterberg/opensalestax-bagisto

A Bagisto extension that connects your store to the Open Sales Tax service, calculating accurate US sales tax rates at checkout. It adds tax lookup to Bagisto's cart and order flow, helping merchants handle destination-based sales tax without manual rate tables.

View on GitHub
Deep Wiki
Context7

Technical Evaluation

v0.2.0 is a non-breaking feature release for the Bagisto OpenSalesTax connector. It adds a per-state nexus filter (nexus_states / OPENSALESTAX_NEXUS_STATES) that short-circuits the OpenSalesTax engine for carts shipping outside configured US states, leaving those carts to Bagisto’s built-in tax handling. Unset or empty preserves v0.1 behavior.

  • Architecture fit: Good. The package remains a Laravel/Bagisto integration layer that listens to cart/checkout tax events and delegates to OpenSalesTax. The new config gate is a clean operational control rather than a structural change. It aligns Bagisto with the vendor’s WooCommerce, Vendure, and Odoo connectors, which is a positive maturity signal.
  • Integration feasibility: High. Configuration-only feature, no schema migration implied. Upgrade path from v0.1 should be low-effort: update package, set env/config, clear config cache, test checkout in nexus and non-nexus states.
  • Technical risk: Low overall, but tax-configuration risk is meaningful. The nexus list becomes a manually maintained control point. Incorrect or stale state lists can cause tax to be calculated by the wrong system. Edge cases include missing/blank shipping state, non-US addresses, state changes during checkout, digital goods, multi-origin inventory, and tax-exempt customers.
  • Key questions: Does the package validate state codes and reject malformed values? Is matching case-insensitive? What happens when shipping state is absent or unknown? Is the filter based only on shipping address, or billing too? Does it re-evaluate when the cart shipping address changes? Are skipped engine calls logged? Is there an admin UI, or is this env/config only? What are the supported Bagisto/Laravel/PHP version constraints? What is the fallback behavior if OpenSalesTax fails for a nexus state?

Integration Approach

  • Stack fit: Fits Laravel/PHP Bagisto deployments using Composer and env-based configuration. The feature is especially useful for merchants with limited nexus states who want Bagisto’s native tax logic to handle non-nexus carts while sending nexus-state carts to OpenSalesTax.
  • Migration path: Treat v0.2.0 as an additive upgrade. Run composer update for ejosterberg/opensalestax-bagisto, republish config if required by the package, set OPENSALESTAX_NEXUS_STATES or nexus_states, and clear Laravel config cache. No data migration is indicated.
  • Compatibility: Backward compatible by design: unset/empty preserves v0.1 behavior. Before rollout, verify the package’s Composer constraints against the current Bagisto/Laravel/PHP matrix. Confirm that state codes are two-letter US codes and that multi-store deployments can set different values per environment if needed.
  • Sequencing: Upgrade in staging first. Configure the nexus list to match finance/legal registrations. Test carts shipping to an in-nexus state, an out-of-nexus state, and a blank/unknown state. Verify Bagisto’s built-in tax is correctly configured for non-nexus states before enabling the filter in production. Then promote, monitor tax calculations and checkout success, and update runbooks.

Operational Impact

  • Maintenance: Low code maintenance, but ongoing configuration ownership is required. Finance/tax ops must update nexus_states whenever registrations change. Treat the list as controlled tax configuration, not a casual env setting.
  • Support: Expect new support questions around “why was tax calculated/not calculated?” Document the nexus filter behavior and the fact that non-nexus carts fall back to Bagisto’s native tax. Ensure logs show when the OpenSalesTax call is skipped and why.
  • Scaling: Positive for cost and latency: fewer external tax-engine calls for non-nexus carts. No material scaling concern for nexus-state carts. The filter also gives TPMs a controlled rollout lever by state.
  • Failure modes: Invalid or stale state lists, missing shipping state, config cache not cleared, misconfigured Bagisto native tax for non-nexus states, and OpenSalesTax outages for nexus states. The most dangerous failure is silent misconfiguration that causes tax to be calculated by the wrong system. Require QA coverage and post-deployment monitoring.
  • Ramp-up: Moderate. Engineering can upgrade quickly, but tax/operations/finance must agree on the nexus list and validate fallback tax behavior. Provide a short runbook covering how to change states, clear cache, test checkout, and monitor results.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
roundly-consulting/kubernetes-api-for-laravel
roundly-consulting/plausible-for-laravel
gvp/gvp-laravel-template
metasyncsite/laravel-metasync-client
roundly-consulting/onboarding-for-laravel
andydefer/laravel-notification
adachsoft/cli-process-tester
jhaskell13/laraflow
sebastienheyd/boilerplate-media-manager
ccast/tagixo-primix
pretendtrue/laravel-builder
sawmainek/laravel-scout-tntsearch-driver
tomshaw/laravel-calendar-table
dibakar/laravel-ownership
steadrun/laravel-monitor
labyrinthe/connect-laravel
elmogy/layan
drewdan/sentinel-client
dskripchenko/laravel-llm
fatryst/nuonuo