marceli-to/aicms
Composer 安装命令:
composer require marceli-to/aicms
包简介
AI-powered CMS for Laravel - Edit static content via chat
README 文档
README
AI-powered CMS for Laravel — Edit static content via chat.
Installation
composer require marceli-to/aicms
Configuration
Publish the config file:
php artisan vendor:publish --tag=aicms-config
Add your Anthropic API key to .env:
AICMS_ANTHROPIC_KEY=sk-ant-... AICMS_MODEL=claude-sonnet-4-20250514
Edit config/aicms.php to define which files are editable:
'editable_paths' => [ 'resources/views/pages/*.blade.php', 'content/**/*.md', ],
Usage
- Make sure you have authentication set up in your Laravel app
- Visit
/aicms(or your configured route prefix) - Start chatting to edit content
Example prompts
- "Change the homepage title to 'Welcome to Our Site'"
- "Update the contact email to info@example.com"
- "List all editable files"
- "Show me the about page content"
Middleware
By default, AICMS uses ['web', 'auth'] middleware. Customize in config:
'middleware' => ['web', 'auth', 'admin'],
Customizing Views
Publish views to customize the UI:
php artisan vendor:publish --tag=aicms-views
Views will be copied to resources/views/vendor/aicms/.
Security
- Only files matching
editable_pathspatterns can be read/modified - Uses your existing Laravel authentication
- API key is stored server-side, never exposed to client
License
MIT
统计信息
- 总下载量: 16
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 5
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-02-01