Skip to content

Instantly share code, notes, and snippets.

@jjpmann
Last active February 22, 2018 21:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jjpmann/ddbf68a4dceee3a0dab451d0783a7171 to your computer and use it in GitHub Desktop.
Save jjpmann/ddbf68a4dceee3a0dab451d0783a7171 to your computer and use it in GitHub Desktop.
# Versions and Changelog
Files kept in the repo for refrence of current version of the site and log of the changes.
## Changelog
http://keepachangelog.com/en/0.3.0/
_Examples_
Simple
https://github.com/jjpmann/ee-dt/blob/master/CHANGELOG.md
More Detail
https://github.com/laravel/laravel/blob/master/CHANGELOG.md
## Version
https://semver.org/
_file Version.php_
<?php
namespace App;
class Version
{
/**
* The application version.
*
* @var string
*/
protected static $version = '1.2.30';
/**
* The previous application version.
*
* @var string
*/
protected static $previous = '1.2.29';
public static function current()
{
return static::$version;
}
public static function previous()
{
return static::$previous;
}
### CMS Helpers
_Wordpress and Drupal sites_
Production
![wp admin](http://share.jjpmann.com/screenshots/Screen%20Shot%202018-02-21%20at%208.43.59%20AM.png)
Development
![wp admin](http://share.jjpmann.com/screenshots/Screen%20Shot%202018-02-21%20at%209.00.31%20AM.png)
### Version links
I created but have not used much, would be handy for supmon!
https://www.fishbowl.com/misc/version
https://www.fishbowl.com/misc/version?json
https://www.fishbowl.com/misc/version?shield
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment