Download the PHP package fyre/math without Composer

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

FyreMath

FyreMath is a free, open-source math library for PHP.

Table Of Contents

Installation

Using Composer

In PHP:

Methods

Abs

Get the absolute value of a number.

Acos

Get the arc cosine of a number.

Acosh

Get the inverse hyperbolic cosine of a number.

Asin

Get the arc sine of a number.

Asinh

Get the inverse hyperbolic sine of a number.

Atan

Get the arc tangent of a number.

Atan2

Get the arc tangent of 2 numbers.

Atanh

Get the inverse hyperbolic tangent of a number.

Binary To Decimal

Convert a binary number to decimal.

Ceil

Round a number up.

Clamp

Clamp a number between a min and max.

Clamp Percent

Clamp a number between 0 and 100.

Convert Base

Convert a number between bases.

Cos

Get the cosine of a number.

Cosh

Get the hyperbolic cosine of a number.

Decimal To Binary

Convert a decimal number to binary.

Decimal To Hex

Convert a decimal number to hex.

Decimal To Octal

Convert a decimal number to octal.

Degrees To Radians

Convert a number of degrees to radians.

Distance

Calculate the distance between 2 points.

Exp

Calculate the exponent of e.

Exp Minus 1

Calculate the exponent of e-1.

Floor

Round a number down.

Fmod

Calculate the modulo of a number with a divisor.

Hex To Decimal

Convert a hex number to decimal.

Hypot

Calculate the length of a point.

Inverse Linear Interpolation

Inverse linear interpolation from one value to another.

Is Numeric

Determine if the value is numeric.

Linear Interpolation

Linear interpolation from one value to another.

Log

Calculate the logarithm.

Log 10

Calculate the base-10 logarithm.

Log Plus 1

Calculate the logarithm of a number + 1.

Map

Map a value from one range to another.

Max

Find the highest value.

All arguments supplied to this method will be compared.

Min

Find the lowest value.

All arguments supplied to this method will be compared.

Octal To Decimal

Convert an octal number to decimal.

Pow

Raise a number to the power of exponent.

Product

Calculate the product of values.

All arguments supplied to this method will be multiplied.

Radians To Degrees

Convert a number of radians to degrees.

Random

Return a random floating-point number.

If $b is omitted, this function will return a random number between 0 (inclusive) and $a (exclusive).

If both arguments are omitted, this function will return a random number between 0 (inclusive) and 1 (exclusive).

Random Int

Return a random integer.

If $b is omitted, this function will return a random number between 0 (inclusive) and $a (exclusive).

Round

Round a number.

Sin

Get the sine of a number.

Sinh

Get the hyperbolic sine of a number.

Sqrt

Get the square root of a number.

Sum

Calculate the sum of values.

All arguments supplied to this method will be added.

Tan

Get the tangent of a number.

Tanh

Get the hyperbolic tangent of a number.

To Step

Round a number to a specified step-size.


All versions of math with dependencies

PHP Build Version
Package Version
No informations.
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 fyre/math contains the following files

Loading the files please wait ....