1. Go to this page and download the library: Download shaggy8871/yami 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/ */
use Yami\Migration\AbstractMigration;
class TestMigration extends AbstractMigration
{
public function up()
{
$node = $this->get('.');
$node->add(['foo' => 'bar']);
$this->save();
}
public function down()
{
$node = $this->get('.');
$node->remove('foo');
$this->save();
}
}