PHP code example of misodrobny / application-versioning

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

    

misodrobny / application-versioning example snippets


return [
    'version_file_path' => base_path('version.yaml'),
];

$major.$minor.$patch - $git_hash

    echo ApplicationVersion::getFormatedVersion();

    (new ApplicationVersioning)->increaseMajor();
    (new ApplicationVersioning)->increaseMinor();
    (new ApplicationVersioning)->increasePatch();
bash
php artisan application-versioning:install
bash
php artisan application-version:increase-major 
php artisan application-version:increase-minor 
php artisan application-version:increase-patch