mereo-desenvolvimento / php-mereo
Desenvolvimento pacote php
v1.0.0
2024-08-21 15:30 UTC
Requires
- php: >=8.0
This package is auto-updated.
Last update: 2025-04-21 17:33:20 UTC
README
The Mereo
class is a simple PHP class that provides basic arithmetic operations: addition, subtraction, and multiplication.
Installation
You can include the Mereo
class in your PHP project by simply running the command below:
composer require mereo-desenvolvimento/php-mereo
Usage
To use the Calculator
class, you need to instantiate the class and then call its methods to perform arithmetic operations.
Example
<?php require __DIR__.'/vendor/autoload.php'; use MereoDesenvolvimento\PHPMereo\Mereo; $calculator = new Mereo(); $sum = $calculator->add(2, 3); echo "Sum: " . $sum; $difference = $calculator->subtract(5, 3); echo "Difference: " . $difference; $product = $calculator->multiply(4, 3); echo "Product: " . $product;