kudastech/filament-bible
Composer 安装命令:
composer require kudastech/filament-bible
包简介
Filament package to fetch from the Holy Bible
README 文档
README
A Laravel package for fetching Bible verses with Filament integration.
Features
- 📖 Access Bible verses programmatically
- 🔍 Search and select verses with an intuitive UI
- 🧩 Seamless integration with Filament forms
- 🌐 Support for multiple languages and Bible versions (currently KJV in English)
- 📋 Easy to use API with fluent interface
Installation
You can install the package via composer:
composer require kudastech/filament-bible
After installation, publish the configuration file:
php artisan vendor:publish --tag=bible-config
To publish the Bible files to your application's storage directory:
php artisan vendor:publish --tag=bible-files
Configuration
After publishing the config file, you can modify it at config/bible.php:
return [ // Default Bible language 'default_language' => 'en', // Default Bible version 'default_version' => 'kjv', // Path to Bible data files 'bibles_path' => storage_path('app/bibles'), ];
Usage
Basic Usage
The package provides a convenient facade for quick access to Bible functionality:
use Kudastech\Bible\Facades\Bible; // Get a specific verse $verse = Bible::get('Isaiah 60:1'); $verse = Bible::book('Isaiah')->chapter(60)->verse(1)->getVerse(); // Get list of available books $books = Bible::getBooks();
Filament Integration
This package provides a convenient integration with Filament forms through the BibleAction class:
use Kudastech\Bible\Actions\BibleAction; use Filament\Forms\Components\Textarea; use Filament\Forms\Components\TextInput; Forms\Components\Section::make() ->schema([ Forms\Components\TextInput::make('verse_reference') ->label('Bible Reference') ->helperText('Reference will be automatically filled when you fetch a verse') ->columnSpan('full'), Forms\Components\Textarea::make('verse_text') ->label('Bible Verse') ->rows(3) ->columnSpan('md'), // This is how you can use the BibleAction Forms\Components\Actions::make([ BibleAction::make('fetchBibleVerse') ->targetField('verse_text') ->referenceField('verse_reference') ])->columnSpan('md'), ]) ->columns(1),
When the user clicks the Bible action button, they'll see a modal dialog where they can select a Bible book, chapter, and verses. The selected verses will be inserted into the target field, and the reference will be inserted into the reference field (if specified).
Currently Supported Languages and Versions
| Language | Code | Versions |
|---|---|---|
| English | en | kjv |
Adding New Languages and Bible Versions
To add a new language or Bible version:
- Create a folder structure similar to
bibles/en - Add a
Books.jsonfile with the list of books - Add JSON files for each book with chapters and verses
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Acknowledgements
The KJV English Bible JSON files were sourced from here.
kudastech/filament-bible 适用场景与选型建议
kudastech/filament-bible 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 3 次下载、GitHub Stars 达 4, 最近一次更新时间为 2025 年 04 月 10 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「laravel」 「filament」 「Kudastech」 「Filament-Bible」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 kudastech/filament-bible 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 kudastech/filament-bible 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 kudastech/filament-bible 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Alfabank REST API integration
Database-driven onboarding for Filament: progress checklists and guided spotlight tours, translatable to any locale.
Laravel package for Accurate Online API integration.
Create-project starter for a Laravel application with the public Capell CMS foundation.
Shared RCX Laravel DataTables UI and configuration helpers.
Boot a Laravel project on any machine with one command: app:serve installs missing tools (PHP, Node, Composer, Herd, Docker), creates .env, sets up the database, runs migrations, builds assets, starts a queue worker and serves via Herd, Sail or artisan serve; app:down cleanly stops everything it sta
统计信息
- 总下载量: 3
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 21
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-04-10
