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

Vat Calculator Laravel Package

mpociot/vat-calculator

EU VAT/MOSS calculator for Laravel/Cashier or standalone PHP. Calculate gross prices and tax rates by country/postal code, handle B2B/B2C rules, and validate EU VAT numbers. Simple API via facade or instance.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • EU Market Expansion: Enables accurate VAT compliance for businesses selling to EU customers, reducing legal/financial risks.
  • Pricing Flexibility: Supports dynamic pricing adjustments (net/gross) based on customer type (B2B/B2C) and location.
  • Compliance Automation: Eliminates manual VAT calculations, reducing errors and audit exposure.
  • Cashier Integration: Streamlines subscription billing for EU customers with correct tax rates.
  • Validation Layer: Adds trust in customer VAT numbers via VIES API integration (with fallback for offline checks).
  • Roadmap Priority:
    • Must-have: For platforms targeting EU markets (e.g., SaaS, e-commerce).
    • Nice-to-have: For non-EU businesses with EU customers (e.g., digital products).
    • Defer: If compliance is handled externally (e.g., via a third-party tax service).

When to Consider This Package

Adopt if:

  • Your product sells to EU customers (digital/physical goods/services).
  • You need automated VAT calculations (B2B vs. B2C rates, reverse charge rules).
  • You require VAT number validation (via VIES API or format checks).
  • You use Laravel/Cashier for subscriptions (or standalone PHP).
  • Your team lacks tax compliance expertise or wants to reduce manual errors.

Look elsewhere if:

  • You operate outside the EU (no VAT obligations).
  • You rely on a dedicated tax service (e.g., Avalara, Quaderno) for global compliance.
  • Your stack is non-PHP (e.g., Node.js, Ruby).
  • You need real-time tax rate updates (this package uses predefined rates; consider API-based solutions like VAT API).
  • Your business model exempts you from VAT (e.g., certain digital services under OSS).

How to Pitch It (Stakeholders)

For Executives:

*"This package automates EU VAT compliance—saving time, reducing errors, and mitigating legal risks when selling to European customers. It handles:

  • Dynamic tax calculations (B2B vs. B2C rates, reverse charge).
  • VAT number validation (via EU’s VIES API, with offline fallbacks).
  • Seamless integration with Laravel/Cashier for subscriptions. Without it, we risk fines, refunds, or lost sales due to incorrect tax handling. For €1M in EU revenue, this could save €50K+ in compliance costs and 100+ hours/year in manual work."

For Engineering:

*"A battle-tested Laravel package that:

  • Calculates VAT in 1 line: VatCalculator::calculate(24.00, 'DE').
  • Validates VAT numbers (format + API checks) with fallback logic.
  • Integrates with Cashier for EU subscription tax rates (via BillableWithinTheEU trait).
  • Supports edge cases: ZIP-code-based rates, UK VAT (with HMRC API), and offline mode. Pros: MIT-licensed, actively maintained, 1.3K+ downloads. Cons: Relies on external APIs (VIES/HMRC); not real-time (rates are predefined).* Alternatives: Build custom logic (risky) or use a paid service (e.g., Avalara)."*
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