Skip to content

Yeromnis/github-lastversion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

github-lastversion

PHP class/script to get the last version tag from a GitHub repository

Use

  • As a class:

  • <?php
    
    require 'github-lastversion.php';
    
    try {
    
      echo GitHub::getLastRelaseVersion('vrana/adminer'); // example
    
    } catch (Exception $e) {
      //TODO
    }    

  • As a script:

  • Syntax: php github-lastversion.php [githubuser]/[githubrepository]

    Example: php github-lastversion.php vrana/adminer

About

PHP class/script to get the last version tag from a GitHub repository

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages