Download the PHP package sehrgut/wp-eu-vat-helpers without Composer

On this page you can find all versions of the php package sehrgut/wp-eu-vat-helpers. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package wp-eu-vat-helpers

WordPress EU VAT Helpers

WordPress Packagist Travis Build Status Codecov StyleCI Status

WordPress helper shortcodes to display prices including applicable VAT rate for the user's location (based on IP address)

This WordPress plugin is basically a wrapper around the nifty mpociot/vat-calculator library. Use at your own risk for the following:

Installation

  1. Recommended (most frequent updates): composer require sehrgut/wp-eu-vat-helpers
  2. Alternative (possibly outdated): Via WordPress plugin directory or zip download, you know that stuff for sure…

Available Shortcodes

Shortcode Usage


[localize_currency]

Add EU VAT to value and format the result as currency.

Example:

Attributes:

Attribute  Required  Default  Effect
value required The amount to format
currency optional 'EUR' Currency as three-letter ISO-4217 code
country optional  based on user's IP address  Override the country for which to apply taxes and adapt the format (two-letter ISO-3166-1 alpha-2 code)

[vat_rate]

Display the EU VAT rate applicabe in the current user's country in percent.

Example:

Attributes:

Attribute  Required  Default  Effect
country optional  based on user's IP address  Override the country whose VAT rate to display (two-letter ISO-3166-1 alpha-2 code)

[ip_country]

Display the current user's country based on their IP address.

Example:

Attributes: none


[if_taxable]

Condtitionally display a piece of content if EU VAT is applicable in the current user's country.

Example:

Attributes:

Attribute  Required  Default  Effect
country optional  based on user's IP address  Override the country for which to check (two-letter ISO-3166-1 alpha-2 code)

[unless_taxable]

Condtitionally display a piece of content if EU VAT is not applicable in the current user's country. (Inverse of if_taxable)

Example:

Attributes: Attribute  Required  Default  Effect
country optional  based on user's IP address  Override the country for which to check (two-letter ISO-3166-1 alpha-2 code)

Devlopment / Testing

Support

Please use Github Issues for Questions, Bug reports, Feature suggestions and everything else.

Compatibility

This plugin was tested with WordPress 4.8.x and PHP 7.1 & 7.2

License

Copyright 2017 Sehr gute GmbH – licensed under the MIT License.


All versions of wp-eu-vat-helpers with dependencies

PHP Build Version
Package Version
Requires mpociot/vat-calculator Version ~2.2.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package sehrgut/wp-eu-vat-helpers contains the following files

Loading the files please wait ...