aytackayin/youtube-to-blog
Composer 安装命令:
composer require aytackayin/youtube-to-blog
包简介
YouTube to Blog Laravel package with Chrome Extension API integration for Filament
README 文档
README
A comprehensive Laravel/Filament package that converts YouTube videos into blog posts via a Chrome extension, automatically downloading the video to the gallery.
v1.0.0 Features:
- Background video downloading (Queue worker)
- Automatically running worker (Special trigger for Windows)
- Instant status tracking with Chrome Extension (Polling)
- "Human-like" downloading capabilities (YouTube 403 bypass)
Requirements
- Laravel 11+ or Laravel 12
- Filament 4.x
- yt-dlp: Must be installed on the server.
- PHP Queue Worker: Required for background processes (The package automatically triggers locally).
Installation
1. Install the Package
(After publishing on Packagist):
composer require aytackayin/youtube-to-blog
During development with composer.json repositories setting:
"repositories": [ { "type": "path", "url": "./packages/aytackayin/youtube-to-blog" } ]
2. Run Migrations
php artisan migrate
3. Publish Config File
php artisan vendor:publish --tag=youtube-to-blog-config
4. yt-dlp Installation (Important!)
yt-dlp must be installed on the server for the video download feature to work.
Windows:
- Download
yt-dlp.exe. - Place it in a folder in your project (e.g.,
extensions/youtube-to-blog/). - Add the path to your
.envfile:
YT_DLP_PATH="C:/laragon/www/project/extensions/youtube-to-blog/yt-dlp.exe"
Linux:
- Install via terminal:
sudo curl -L https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp -o /usr/local/bin/yt-dlp sudo chmod a+rx /usr/local/bin/yt-dlp
- Configure
.env:YT_DLP_PATH="/usr/local/bin/yt-dlp"
5. Chrome Extension Installation
This package comes with a Chrome Extension.
- Download the Package: Download the
youtube-to-blog-extension.zipfile from this repository. - Unzip: Extract the files to a folder.
- Install on Chrome:
- Go to
chrome://extensionsin Chrome. - Enable Developer mode in the top right.
- Click Load unpacked and select the folder you extracted.
- Go to
- Configure:
- Click the extension icon.
- Site URL:
https://your-site.com(orhttp://localhost/project) - API Key: Enter the Chrome Token generated from your profile page.
Usage
- Go to YouTube: Open any video.
- "Save as Blog" Button: Click the button added below the video or the extension icon.
- Select Category: Select a category from the popup and click "Save".
- Process Tracking:
- The extension will first say "Saved".
- The video starts downloading in the background (Depends on server load).
- When the video is downloaded, the Extension gives a "Completed" notification.
- A system notification also appears in the Panel.
Model Settings
Add the trait to App\Models\User model:
use Aytackayin\YoutubeToBlog\Traits\HasYouTubeApiToken; class User extends Authenticatable { use HasYouTubeApiToken; }
Add the API key management component to your Filament profile page:
use Aytackayin\YoutubeToBlog\Filament\Components\YouTubeApiKeyComponent; YouTubeApiKeyComponent::getTab(),
Configuration
You can change the Model classes and file path settings via config/youtube-to-blog.php.
return [ 'disk' => 'attachments', // Disk where files will be uploaded 'video_download_enabled' => true, 'yt_dlp_path' => env('YT_DLP_PATH'), // ... ];
License
MIT License
aytackayin/youtube-to-blog 适用场景与选型建议
aytackayin/youtube-to-blog 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 6 次下载、GitHub Stars 达 0, 最近一次更新时间为 2026 年 01 月 28 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「api」 「blog」 「youtube」 「laravel」 「filament」 「chrome-extension」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 aytackayin/youtube-to-blog 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 aytackayin/youtube-to-blog 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 aytackayin/youtube-to-blog 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Easy to use SDK with grabber for multiple platforms at once like YouTube, Dailymotion, Facebook and more.
Laravel package for opinionated blog implementation
A PSR-7 compatible library for making CRUD API endpoints
♺ Laravel Nova Hashids card. Convert your ids.
Import an RSS-feed into blog
Faker provider for NumberNine CMS
统计信息
- 总下载量: 6
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 38
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-01-28