PHP code example of whirlwind-framework / mongo-migrations
1. Go to this page and download the library: Download whirlwind-framework/mongo-migrations 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/ */
whirlwind-framework / mongo-migrations example snippets
$container->add(
\Whirlwind\MigrationCore\Config\MigrationPaths::class,
fn (): \Whirlwind\MigrationCore\Config\MigrationPaths => new \Whirlwind\MigrationCore\Config\MigrationPaths([
new \Whirlwind\MigrationCore\Config\MigrationPath(
'/path/to/migrations/folder',
'Your\\Migration\\Namespace'
)
])
)