devidw/bookmark-to-shortcut

Convert your browser bookmarks to web shortcut files.

Maintainers

Package info

github.com/devidw/BookmarkToShortcut-php

pkg:composer/devidw/bookmark-to-shortcut

Fund package maintenance!

devidw

Statistics

Installs: 0

Dependents: 0

Suggesters: 0

Stars: 1

Open Issues: 0

dev-master 2022-01-24 17:06 UTC

This package is auto-updated.

Last update: 2026-02-25 02:22:25 UTC


README

Convert your browser bookmarks to web shortcut files (.url, .webloc, .desktop) to be able to use them on your desktop and in your file explorer.

How to convert

First you have to export your bookmarks from your browsers, use the following links to navigate directly to your browsers bookmark manager.

  • opera://bookmarks

  • chrome://bookmarks

  • edge://favorites

Usage

<?php

require_once dirname(__DIR__) . '/src/BookmarkToShortcut.php';

use Devidw\BookmarkToShortcut\BookmarkToShortcut;

$converter = new BookmarkToShortcut(
  __DIR__ . '/in', // source directory
  __DIR__ . '/out', // destination directory
  ['url', 'webloc', 'desktop'] // formats to write
);

$converter->convert();

Compatibility

  • works with NETSCAPE-Bookmark-file-1 exports

  • tested for exports from Chromium browsers (Opera, Chrome, Edge)

  • supported shortcut formats

    • .url (Windows)

    • .webloc (Mac OSX)

    • .desktop (Linux)