Download the PHP
package customergauge/remainder without Composer
On this page you can find all versions of the php package
customergauge/remainder. It is possible to download/install
these versions without Composer. Possible dependencies are resolved
automatically.
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.
This library provides a simple way to calculate percentages using the Largest Remainder Method.
Learn more.
Installation
Usage
In simple terms, the goal of the Largest Remainder Method is to make
sure that when calculating the weight of each seat in the data set,
the aggregated percentage will not be 99.99 or 100.01.
The first example above is arbitrary and end up rounding up only the
first record so that 0.34 + 0.33 + 0.33 = 1, however not always
the decision is arbitrary.
As we can see, 0.36 + 0.37 + 0.27 = 1, however using standard
rounding, the result would have been different. To demonstrate that,
let's calculate 92 + 93 + 70 = 255. Each value takes the following
percentage of the whole:
Value
Percentage
Round
Largest Remainder Method
92
0.3607843137
0.36
0.36
93
0.3647058823
0.36
0.37
70
0.2745098039
0.27
0.27
As we can see from the table above, standard rounding end up
losing one percentage point because all three numbers round
down. The Largest Remainder Method will scan the values that will
be discarded (0.3607843137, 0.3647058823,
0.2745098039) and prioritize the ones with the largest
contribution. In this case, the 2nd value will discard 47058823,
which is the largest value discarded. That makes it viable for
round up to fill the gap.
The fact that 93 is also the largest value does not necessarily
have a direct connection to the option being rounded up. We can
try the same example again using a much smaller number. Take
92 + 32 + 70 = 194.
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 customergauge/remainder contains the following files
Loading the files please wait ...
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.