Download the PHP package furqansiddiqui/bcmath-php without Composer

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

BcMath OOP wrapper

BcMath OOP wrapper lib

Installation

composer require furqansiddiqui/bcmath-php

BcNumber Methods

Method Description Returns
scale Sets the scale parameter self
trim Trims unnecessary digits (0s on the extreme right after decimal point) self
original Returns original number (given on constructor) string
value Gets value as string string
int Gets value as integer, Throws exception is stored value is not an integer (has decimals) OR exceeds PHP_INT_MAX int
isInteger Checks if value is integral (does not have decimals) bool
isZero Checks if value is zero bool
isPositive Checks if value is greater than zero bool
isNegative Checks if value is less than zero bool
equals Compares value with a number to check if both are equal bool
compare Compare value with another number int
greaterThan Compares value with a number to check if value is greater than argument bool
greaterThanOrEquals Compares value with a number to check if value is greater than or equals argument bool
lessThan Compares value with a number to check if value is less than argument bool
lessThanOrEquals Compares value with a number to check if value is less than or equals argument bool
inRange Checks if value is within (or equals) given min and max arguments bool
add --- self
sub --- self
subtract --- self
mul --- self
multiply --- self
multiplyByPow --- self
div --- self
divide --- self
pow --- self
mod --- self
update Result of very next calculation will update value of self instance instead of creating new one self
encode Encodes current value as Hexadecimal (Base10 to Base16 conversion) Base16

All versions of bcmath-php with dependencies

PHP Build Version
Package Version
Requires php Version ^7.2
ext-bcmath Version *
furqansiddiqui/data-types-php Version ^0.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 furqansiddiqui/bcmath-php contains the following files

Loading the files please wait ....