定制 divyashriravichandran/bookmark-cli 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

divyashriravichandran/bookmark-cli

Composer 安装命令:

composer require divyashriravichandran/bookmark-cli

包简介

A fast and private PHP command-line tool to save, index, and search your favorite web pages entirely from your terminal.

README 文档

README

A fast PHP command-line tool to save, index, and search your favourite web pages entirely from your terminal.

✨ Features

  • Instant Search: 1-2ms search responses using a local Redis cache.
  • Smart Scraping: Automatically crawls and extracts HTML from unindexed sites on cache misses
  • Reliable Storage: Keeps your data safe with local file storage and fuzzy text search via Elasticsearch.

System Requirements

  • PHP 8.1 or higher
  • Composer (PHP dependency manager)
  • Redis Server (Running on port 6379)
  • Elasticsearch v7.17+ (Running on port 9200 with Machine Learning disabled)

🛠️ Installation

  1. Install globally via Composer using the official Packagist Registry Listing:
composer global require divyashriravichandran/bookmark-cli:dev-main
  1. Update your system PATH:

    Add the Composer global binaries to your shell profile (~/.zshrc or ~/.bashrc):

export PATH="$HOME/.composer/vendor/bin:$PATH"

🚀 Usage

  1. Start Services

    Make sure your local database services are running:

# Start Redis
brew services start redis

# Start Elasticsearch
ES_JAVA_HOME=$(brew --prefix)/opt/openjdk@17/libexec/openjdk.jdk/Contents/Home elasticsearch
  1. Available Terminal Commands

    Run these commands in your terminal:

# Add and index a webpage
bookmark add <website-url>

# Search your bookmarks using fuzzy matching
bookmark search <keyword>

# Clear the Redis cache
redis-cli flushall

统计信息

  • 总下载量: 0
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-06-18

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固