PHP code example of qietugou / bookmark

1. Go to this page and download the library: Download qietugou/bookmark 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/ */

    

qietugou / bookmark example snippets


use Qietugou\Bookmark\Bookmark;

$book = new Bookmark('您的浏览器书签路径');


$book->getBookmarks()->toResult();


// 传 true 原样输出
$book = new Bookmark('path', true);

// 导航栏
$book->getBookmarks()->toBarResult();
// 其它
$book->getBookmarks()->toOtherResult();
// 移动端设备
$book->getBookmarks()->toSyncedResult();