Download the PHP package prinsfrank/arithmetic-operations without Composer

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

Arithmetic Operations

This is an abstraction package including an interface for arithmetic operations, that can be implemented in 'implementation' packages.

Building your own implementation

If you want to contribute an implementation of the arithmetic-operations, you can easily do so. If you want to implement the interface in the package, you need to depend on the package itself by adding it to the 'require' section;

After that, you want to make sure that packagist understands that you are implementing the Virtual Package 'prinsfrank/arithmetic-operations-implementation' and listing the package under the Virtual Package. You can do so, by adding the package to the 'provides' section. After pushing the package to packagist it should appear under the Virtual Package here

Adding a dependency to an implementation to your composer package

When you as a package maintainer want to let people choose between different arithmetic operation implementations, you can require 'prinsfrank/arithmetic-operations-implementation' as a dependency. Note the '-implementation' on the end. This is a so called 'virtual package'.

If you added a direct dependency to the 'prinsfrank/arithmetic-operations' package, this would result in only the interface being installed. Instead, making use of the Virtual Package prompts the developer to choose an implementation.

Virtual packages are listed on packagist as a list of their implementations.

Installing an implementation when it is required by a package

When installing a package that requires an implementation of this package, composer will give an error and a choice here. For example, when requiring the package prinsfrank/measurement-unit with the following command:

Without first installing an implementation of this package, the following error will be shown:

To fix this, choose one of the suggested packages, and require the package you want to add as follows, where you require both packages at the same time:


All versions of arithmetic-operations with dependencies

PHP Build Version
Package Version
Requires php Version ^8.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 prinsfrank/arithmetic-operations contains the following files

Loading the files please wait ....