PHP code example of blumilksoftware / version

1. Go to this page and download the library: Download blumilksoftware/version 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/ */

    

blumilksoftware / version example snippets




declare(strict_types=1);

use Blumilk\Version\Version;

$version = (new Version())->generate();



declare(strict_types=1);

use Blumilk\Version\Version;

$version = (new Version(true))->generate();
  


declare(strict_types=1);

use Blumilk\Version\VersionHelper;

$shortVersion = VersionHelper::generateShortVersion();
$longVersion = VersionHelper::generateLongVersion();
shell
docker compose up -d
docker compose exec php php -v
docker compose exec php composer -v