PHP code example of eihmels / integer-value-objects

1. Go to this page and download the library: Download eihmels/integer-value-objects library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

eihmels / integer-value-objects example snippets


    $one = Integer:create(1);

    $one = NaturalNumber:create(1);

    $null = NaturalNumberWithNull:create(0);

    php ./vendor/bin/phpunit.phar --configuration ./phpunit.xml
    php ./vendor/bin/phpunit.phar --coverage-html ./coverage-report

   php ./vendor/bin/phpcs.phar --standard=./ruleset.xml  ./src/*/
   php ./vendor/bin/phpcs.phar --standard=./ruleset.xml  ./tests/*

   php ./vendor/bin/phpstan.phar analyse -l max  ./src/