1. Go to this page and download the library: Download zeixcom/craft-delta 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/ */
zeixcom / craft-delta example snippets
use yii\base\Event;
use zeixcom\craftdelta\services\FieldDiffService;
use zeixcom\craftdelta\events\RegisterDiffersEvent;
Event::on(
FieldDiffService::class,
FieldDiffService::EVENT_REGISTER_DIFFERS,
function (RegisterDiffersEvent $event) {
$event->differs[\myvendor\fields\MyField::class] = MyFieldDiffer::class;
}
);