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 Laravel Package

ejosterberg/opensalestax

View on GitHub
Deep Wiki
Context7
v0.3.0

Minor bump: adopts the engine's top-level shipping field on POST /v1/calculate (engine v0.59.0+). Mirrors opensalestax-js v0.3.0 on the PHP side. Backward compatible — existing two-arg callers of Client::calculate() continue unchanged.

Added

  • OpenSalesTax\Shipping value object (request-side) with optional method, separatelyStated, isHandlingCharge flags.
  • OpenSalesTax\Responses\CalculatedShipping DTO (response-side) with amount, taxAmount, ratePct, optional taxableReason.
  • Third arg ?Shipping $shipping = null on Client::calculate().
  • CalculateResponse::$shipping (CalculatedShipping|null).
  • CalculateResponse::$coverageWarning (string|null) — engine v0.59.0+ surfaces coverage warnings when rate data is incomplete.
  • New ShippingTest (12 tests / 36 assertions) + calculate-mn-shipping.json fixture captured live from engine VM 906 on 2026-05-19 (MN $100 + $12.50 shipping → $9.0250 line tax + $1.1281 shipping tax).

Notes

Engine v0.59.0+ required for the engine to actually calculate shipping. Older engines silently ignore the field; the response's shipping will be null. Connectors should flag-gate on $client->capabilities()->features->shippingFirstClass if they need to detect this at setup time.

Quality gate

  • PHPUnit: 36 tests / 103 assertions (PHP 8.2 / 8.3 / 8.4)
  • PHPStan: 0 errors
  • php-cs-fixer: clean
  • composer audit: 0 vulnerabilities
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.
oxygen/data
oxygen/core
jengo/base
xiloryx/log-collector
a21ns1g4ts/filament-stripe
la-php/laravel-admin
artisan-build/community-prompts
vleroy/smart
ayles-software/laravel-australian-public-holidays
cboxdk/laravel-id-spatie
cboxdk/laravel-id-billing
cboxdk/laravel-id-billing-bridge
simple-as-fuck/php-performance-log
hsluv/hsluv
seampact/codegen
seampact/hooks
seampact/ir
mehedimi/laravel-amp-mail
happones/laravel-vue-i18n-generator
jwerd/inertia-table