PHP code example of w3lifer / yii2-doc-bookmarks
1. Go to this page and download the library: Download w3lifer/yii2-doc-bookmarks 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/ */
w3lifer / yii2-doc-bookmarks example snippets
php
use w3lifer\yii2\DocBookmarks;
$docBookmarks = new DocBookmarks();
file_put_contents(
__DIR__ . '/yii2-doc-bookmarks-as-array.php',
'' . "\n\n" .
var_export($docBookmarks->getAsArray(), true) . ';'
);
file_put_contents(
__DIR__ . '/yii2-doc-bookmarks-as-netscape-bookmarks.html',
$docBookmarks->getAsNetscapeBookmarks()
);
echo 'Done!' . "\n";
sh
php yii2-doc-bookmarks.php