PHP code example of fox / laravel-application-version

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

    

fox / laravel-application-version example snippets


'providers' => [
    // ...
    Fox\Application\Version\ServiceProvider::class,
];

$myVersion = new Fox\Application\Version\Version(1, 0, 23, 'alpha');

echo $myVersion->major();
echo $myVersion->minor();
echo $myVersion->patch();
echo $myVersion->build();
echo (string) $myVersion;