PHP code example of apavliukov / app-version-laravel
1. Go to this page and download the library: Download apavliukov/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/ */
apavliukov / app-version-laravel example snippets
namespace App\Console\Commands;
use AvtoDev\AppVersion\AppVersionManagerInterface;
class SomeCommand extends \Illuminate\Console\Command
{
/**
* The console command name.
*
* @var string
*/
protected $name = 'some:command';
/**
* Execute the console command.
*
* @param AppVersionManagerInterface $manager
*
* @return void
*/
public function handle(AppVersionManagerInterface $manager): void
{
$manager->version(); // e.g.: 1.0.0-alpha2
}
}
bash
$ php artisan vendor:publish --provider="AvtoDev\\AppVersion\\ServiceProvider"