3x1io/filament-themes
Composer 安装命令:
composer require 3x1io/filament-themes
包简介
FrontEnd Themes Manager For Filament Admin
README 文档
README
Filament Theme Manager
FrontEnd Themes Manager For Filament Admin
Installation
You can install the package via composer:
composer require 3x1io/filament-themes
Run migration:
php artisan vendor:publish --provider="Spatie\LaravelSettings\LaravelSettingsServiceProvider" --tag="migrations" php artisan vendor:publish --tag="filament-themes-assets" php artisan vendor:publish --tag="filament-themes-migrations"
Run migration:
php artisan migrate
Remove default route from routes/web.php
php artisan optimize
add to your composer.json
"autoload": { "psr-4": { "App\\": "app/", "Database\\Factories\\": "database/factories/", "Database\\Seeders\\": "database/seeders/", "Themes\\": "resources/views/themes/" } },
composer dump-autoload
Create New Theme
to create a new theme just this this command
php artisan filament-themes:generate
it will ask you for the theme name and the theme description
and you will get your new theme folder on path resources/views/themes/THEME_NAME
and your assets folder on path public/themes/THEME_NAME
Theme Helpers
our theme feature has some helpers to make it easy to make a frontend theme like theme assets url
theme_assets()
this function take a url and make it easy to access your theme path public/themes/THEME_NAME/
theme_namespace()
this function get the namespace for the controller folder of the current theme
show_menu()
this function take a key and get this key from settings table and decode it to array so you can use it when you make a menu inside a json setting.
dollar()
this function take a number and convert it to money style with a currency symbol
Generate a Theme Controller
our themes feature support artisan command to generate a new theme controller you can use this command like
php artisan filament-themes:controller
i will ask you about Theme Name and Controller Name
Note: the controller name must be in PascalCase without Controller word on the end because we attach it automatically
Changelog
Please see CHANGELOG for more information on what has changed recently.
Credits
License
The MIT License (MIT). Please see License File for more information.
3x1io/filament-themes 适用场景与选型建议
3x1io/filament-themes 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 3.93k 次下载、GitHub Stars 达 37, 最近一次更新时间为 2022 年 04 月 03 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「themes」 「laravel」 「filament」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 3x1io/filament-themes 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 3x1io/filament-themes 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 3x1io/filament-themes 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Laravel Themes
WordPress mu-plugin to register the theme directory for the default WordPress themes.
This is twig version of Flow Theme for OXID eShop.
Test theme for Altis DXP, based on Automattic/_s starter theme.
This is a Smarty version of Admin Theme for OXID eShop.
Themes module of YajraCMS.
统计信息
- 总下载量: 3.93k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 37
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-04-03
