Download the PHP package cyrulik/simple-calculator without Composer
On this page you can find all versions of the php package cyrulik/simple-calculator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download cyrulik/simple-calculator
More information about cyrulik/simple-calculator
Files in cyrulik/simple-calculator
Package simple-calculator
Short Description A simple calculator implementation with basic functionality.
License MIT
Informations about the package simple-calculator
Simple Calculator
This is a simple calculator that can perform basic arithmetic operations.
It is written as a reusable package in PHP 8.3 and uses PHPUnit 10 for testing.
Installation
You can install the package via composer:
Usage
Working with this project
Simple Calculator uses Makefile to run every aspect required for development of this project.
Specific commands and their equivalent composer scripts are listed below. All of them have their equivalent make commands, e.g. composer test
can be run with make test
.
Installation
To start working with this project, and when changing any of its files later, you can run all major checks with:
Testing
This project uses PHPUnit for testing. You can run tests with:
Or directly with PHPUnit:
Coverage
To generate coverage report, you need to have Xdebug installed. You can generate coverage report with:
Coding Standards
Simple Calculator uses PHP CS Fixer to enforce coding standards. You can fix coding standards with:
Or directly with PHP CS Fixer:
Static Analysis
PHPStan is used for static analysis. You can run static analysis with:
Or directly with PHPStan:
Infection
Infection is used for mutation testing. You can run mutation testing with:
Or directly with Infection: