This class provides a methods to get short version of git. For deployments using git, it can be used to give version numbers to JS, CSS files to ensure to cache updated version of these files., (*6)
## BaseUrlExtractor
This class provides a methods to get base url where applications runs.
Caution: This method may not return real base url if you are behind some services like Cloudflare and when you use Flexible SSL feature.
```php
<?php
declare(strict_types=1);
use Selami\Stdlib\BaseUrlExtractor;
$baseUrl = BaseUrlExtractor::getBaseUrl($_SERVER);
echo $baseUrl;
/* Prints base url like:
http://127.0.0.1:8080
http://127.0.0.1:8080/myapp
https://myapp.com
*/