Weave Code
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.
terminal42/code-quality-tools
codifyo/ts-generator-bundle
andydefer/laravel-cluster
testo/fiber
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity
christhompsontldr/laravel-inky