Download the PHP package omaralalwi/laravel-taxify without Composer

On this page you can find all versions of the php package omaralalwi/laravel-taxify. 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 laravel-taxify

Laravel Taxify

Laravel Taxify

set of helper functions and classes to simplify tax (VAT) calculations within Laravel applications. that allow developers to easily integrate tax calculation functionalities into their projects with multi tax profiles settings and (fixed, percentage) ways. it's offers a straightforward and efficient solution Designed to streamline the process of handling taxes.

Requirements

Laravel 8.x or up , for version 2.x .

Installation

publish the package's configuration file:

Compatibility

For applications running Laravel versions 7.x and older, use version 1.0.4.

Usage

Available Helper Functions

laravel taxify many of helper functions to simplify usage.


calculate tax for an amount:

`


Another way to get Detailed Result.

Result (Object)


Note: the second param refer to profile, we mad it null to take default profile, second param can take (default, null,''') all three values mean default.


Calculate tax for a collection of amounts:

like calculateTax but this for a many amounts .

Result (object)

Get Tax Amount as numeric value


Get tax rate or tax amount:

if profile tax type is fixed will return the amount (read the tax rate as amount), else will return the tax rate.

Note: for default profile no need to pass `profileName.


Get tax type:


Get tax rate as Percentage number (10%, 15%) - for percentage profiles Only:

you can get Tax Rate As Percentage

Note: for default profile no need to pass it

Configuration

Environment Variables

after you published config file .

You can configure Laravel Taxify by adding the following default configuration keys to your .env file. If you do not add these, the default values will be used.

For a percentage tax type:

example configuration for fixed tax type:

Note: The TAXIFY_DEFAULT_RATE is a number representing the rate when the type is percentage or the amount when type is fixed.

You can add more than one of tax profile in config/taxify.php .

Features

Testing

Contributing

Please see CONTRIBUTING for details.

TODO

this todo list , contain the tasks that we planning to working on them, you can choose one of them and develop it if you want to contribute.

Security

If you discover any security related issues, please email [email protected].

Credits

License

The MIT License (MIT). Please see License File for more information.


📚 Helpful Open Source Packages


All versions of laravel-taxify with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0|^8.1|^8.2|^8.3
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 omaralalwi/laravel-taxify contains the following files

Loading the files please wait ....