w3lifer/yii2-doc-bookmarks

1.1.1 2020-11-25 08:19 UTC

This package is auto-updated.

Last update: 2024-04-25 16:04:39 UTC


README

Example

Download

Your can download the latest bookmarks on the following site: https://data.grinvik.com.

Installation

composer require w3lifer/yii2-doc-bookmarks

Usage

  • Create yii2-doc-bookmarks.php file with the following content:
<?php

use w3lifer\yii2\DocBookmarks;

$docBookmarks = new DocBookmarks();

file_put_contents(
    __DIR__ . '/yii2-doc-bookmarks-as-array.php',
    '<?php' . "\n\n" .
        var_export($docBookmarks->getAsArray(), true) . ';'
);

file_put_contents(
    __DIR__ . '/yii2-doc-bookmarks-as-netscape-bookmarks.html',
    $docBookmarks->getAsNetscapeBookmarks()
);

echo 'Done!' . "\n";
  • Run it from the command line to get two files with bookmarks:
php yii2-doc-bookmarks.php
  • Run vendor/bin/yii2-doc-bookmarks to get yii2-doc-bookmarks-as-array.php and yii2-doc-bookmarks-as-netscape-bookmarks.html in the parent directory of the vendor directory.