Download the PHP package mibo/prices without Composer

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

Prices

codecov

The library serves a Price class that can be used to represent a price in an object that can be sold or has its value.

Goals:

User of this library should mainly use \MiBo\Prices\Price class, that comes with an implementation of \MiBo\Prices\Contracts\PriceInterface, or \MiBo\Properties\Contracts\NumericalProperty, meaning, the class follows native add, subtract methods. The PriceInterface extends the NumericalProperty Interface by adding getValueOfVAT and getValueWithVAT methods that can be used to get value of either VAT or both, VAT and the base value. The Interface then extends the PropertyInterface by forCountry method that can be used when one wants to change the VAT of the Price for a specific country.


Installation

Usage

NOTE:


Logic of the library

This library one extends MiBo\Properties library by a Price, using MiBo\VAT to get VAT for the Prices, and MiBo\Currencies for currencies - units of the Prices.

Calculators

PriceCalc class is there to calculate multiple prices, either adding them together, or subtracting them. The point is to have this process on the single place. The Calculator checks the currencies and VAT rates.

Price

The \MiBo\Prices\Price class, the (main) property, is a class-to-be-used by a user. One should not have a need to use another class.


Changes, updates, etc.

The library does not cover a conversion between currencies, nor VAT rates. If one wants to have that solved, check composer suggestions. If empty, the libraries that are focused on that are not yet published, however, they are under development and will be available soon.


Notes

Please, be aware that comparing prices is complex and should be done with care. Currently, the library does provide a way to compare prices, however, that is being marked as deprecated and experimental, even tho, it should work fine. One should make sure that the behavior is as expected, because comparing a price with VAT and currency is way too hard.


All versions of prices with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
mibo/properties Version ^1.1
mibo/currencies Version ^1.0
mibo/taxonomy Version ^1.1
mibo/vat Version ^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 mibo/prices contains the following files

Loading the files please wait ....