PHP code example of akmeh / versioning

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

    

akmeh / versioning example snippets


php -r 'exec("git tag", $tags); sort($tags, SORT_STRING); $last = array_pop($tags); file_put_contents(".version", $last);'