PHP code example of codeuptime / app-version-laravel

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

    

codeuptime / app-version-laravel example snippets


// 'config/app.php'


'providers' => [
    // Other Service Providers

    \CodeUptime\AppVersionLaravel\VersionServiceProvider::class
],


version() 
// = "1.6.0"

\CodeUptime\AppVersionLaravel\Version::current()
// = "1.6.0"

\CodeUptime\AppVersionLaravel\Version::composer()
// = "1.2.0" from composer.json

\CodeUptime\AppVersionLaravel\Version::package()
// = "1.2.0" from package.json

\CodeUptime\AppVersionLaravel\Version::info()

php artisan version
1.6.0