1. Go to this page and download the library: Download jalameta/jps-patcher 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/ */
jalameta / jps-patcher example snippets
use Jalameta\Patcher\Patch;
class WhatDoYouWantToPatch extends Patch
{
/**
* Run patch script.
*
* @return void
* @throws \Exception
*/
public function patch()
{
//
}
}
> $this->command->warn('i patch something danger!');
> $this->command->confirm('do you wish to continue?');
>
> [
> 'channels' => [
> 'patcher' => [
> 'driver' => 'patcher', // you can change me if you want
> 'path' => storage_path('logs/patches.log'), // change me
> ],
> ],
> ];
>