relaticle/ink
Composer 安装命令:
composer require relaticle/ink
包简介
Filament-native content publishing for blog, docs, and AI-citable articles. Headless by default, with opt-in public routes.
README 文档
README
Filament-native content publishing for blog, docs, and AI-citable articles. Ships Eloquent models, a full Filament admin, MCP tools for AI agents, SEO components, publishable Blade UI components, and an opt-in public-routes mode for hosts that want a working blog without writing controllers.
Features
- Filament Admin — PostResource and CategoryResource with markdown editor, draft/published/scheduled UX, SEO fields, featured images, and bulk publish/unpublish/schedule actions
- SEO Components — Meta tags, Open Graph, Twitter Cards, RSS feed, per-page canonicals on paginated listings
- JSON-LD Schema —
BlogPosting+BreadcrumbListon post pages,FAQPageandHowToauto-detected from content (opt-in),Blog+CollectionPageon listings - Search — Portable
Post::search()scope (LIKE by default, override for FTS / Scout), drop-inBlogSearchLivewire component with?q=URL sync - 13 MCP Tools — Full CRUD for posts and categories via Model Context Protocol, with markdown sanitization (HTML stripped, unsafe links blocked)
- Publishable UI Components — Post card, header, body, related posts, category badge, preview banner — all with dark mode
- Two install modes
- Headless (default) — define your own routes/controllers, use the Blade components
- Public-routes mode (opt-in) — flip a config flag, get
/blog,/blog/{slug},/blog/category/{slug}, signed/blog/preview/{post}, and optional/blog/feed
- Tags taxonomy (opt-in via
features.tags) — many-to-manyblog_post_tagtable,TagResourceadmin UI, public archive at/blog/tag/{slug} - MediaLibrary integration (opt-in via
features.media_library) — when both the flag is on ANDspatie/laravel-medialibraryis installed, the featured-image upload usesSpatieMediaLibraryFileUploadinstead of the plainFileUpload. Falls back gracefully if MediaLibrary isn't installed. - Sitemap Generator — Route-aware sitemap integration via spatie/laravel-sitemap
- Reading-time + related-posts helpers on the Post model
Requirements
- PHP 8.4+
- Laravel 12+ or 13
- Filament 5.x
Installation
composer require relaticle/ink
Register the plugin and run migrations:
// AppPanelProvider.php ->plugin(\Relaticle\Ink\InkPlugin::make())
php artisan migrate
Public-routes mode (opt-in)
By default this package is fully headless: no routes, no controllers, no forced views. Your app owns all rendering.
To get a working blog at /blog without writing any controllers, flip the feature flag:
// config/ink.php 'features' => [ 'public_routes' => true, // /blog, /blog/{slug}, /blog/category/{slug}, /blog/preview/{post} 'feed' => true, // adds /blog/feed (RSS 2.0) 'tags' => true, // /blog/tag/{slug}, TagResource in admin 'media_library' => true, // SpatieMediaLibraryFileUpload (requires spatie/laravel-medialibrary) ], 'layout' => 'layouts.app', // your host layout to extend
Routes register at the service-provider level — no Filament panel boot is required, so the public site keeps working for guests who never touch the admin.
Publish the views if you want to customize them:
php artisan vendor:publish --tag=ink-views
Documentation
Quick Example (headless)
{{-- In your blog show page --}} <x-your-layout> @push('head') <x-ink::meta-tags :post="$post" /> <x-ink::feed-link /> @endpush <x-ink::structured-data :post="$post" /> <x-ink::post-header :post="$post" /> <x-ink::post-body :post="$post" /> <x-ink::related-posts :post="$post" /> </x-your-layout>
License
MIT
relaticle/ink 适用场景与选型建议
relaticle/ink 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 774 次下载、GitHub Stars 达 5, 最近一次更新时间为 2026 年 05 月 13 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「blog」 「cms」 「markdown」 「seo」 「headless」 「content」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 relaticle/ink 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 relaticle/ink 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 relaticle/ink 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Texy converts plain text in easy to read Texy syntax into structurally valid (X)HTML. It supports adding of images, links, nested lists, tables and has full support for CSS. Texy supports hyphenation of long words (which reflects language rules), clickable emails and URL (emails are obfuscated again
GraphQL authentication for your headless Craft CMS applications.
Laravel package for opinionated blog implementation
Set Links with a specific language parameter
Supercharged text field validation.
Adds more BBCode
统计信息
- 总下载量: 774
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 58
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-05-13