ericlagarda/nova-text-card
Composer 安装命令:
composer require ericlagarda/nova-text-card
包简介
A custom card for Laravel Nova to show Text in cards with some good options
README 文档
README
A custom card for Laravel Nova to show Text in cards with some good options.
Installation
You can install the package in to a Laravel app that uses Nova via composer:
composer require ericlagarda/nova-text-card
Then, register your new link in the cards method of the NovaServiceProvider or your ResourceTool class.
public function cards() { return [ // ... // Examples from the preview image (new TextCard()) ->forceFullWidth() ->heading('My custom awesome heading') ->text('Congue platea augue fames nullam morbi vehicula egestas lobortis lacus adipiscing eleifend'), (new TextCard()) ->width('1/2') ->height(100) ->center(false) ->heading('Custom card no centered') ->text('Congue platea augue fames nullam morbi'), (new TextCard()) ->width('1/2') ->height() ->text('<h4 class="font-light">This is a custom card with text and no heading. Height is set to auto.</h4>') ->textAsHtml(), (new TextCard()) ->forceFullWidth() ->height(90) ->heading('<h1 class="text-3xl text-80 font-light">Just a heading text with a smile <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path class="fill-current" d="M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm6 14h-12c.331 1.465 2.827 4 6.001 4 3.134 0 5.666-2.521 5.999-4zm0-3.998l-.755.506s-.503-.948-1.746-.948c-1.207 0-1.745.948-1.745.948l-.754-.506c.281-.748 1.205-2.002 2.499-2.002 1.295 0 2.218 1.254 2.501 2.002zm-7 0l-.755.506s-.503-.948-1.746-.948c-1.207 0-1.745.948-1.745.948l-.754-.506c.281-.748 1.205-2.002 2.499-2.002 1.295 0 2.218 1.254 2.501 2.002z"/></svg></h1>') ->headingAsHtml(), ]; }
Card options
->width('string'): Width of the card.->forceFullWidth(): Force the card to be full width. A fix for nova cards order.->height('string or number'):Height of the Card. If is called without options height will be auto. Default to nova card height.->center(boolean): If you want the text centered or not. Default to true->heading('string or html'): Heading text or custom html. Default to false. No heading text is shown.->text('string or html'): Text of the card or custom html. Default to false. No text is shown.->headingAsHtml(): If you want to print the heading as HTML->textAsHtml(): If you want to print the text as HTML
ericlagarda/nova-text-card 适用场景与选型建议
ericlagarda/nova-text-card 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 412.38k 次下载、GitHub Stars 达 20, 最近一次更新时间为 2019 年 02 月 22 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「text」 「nova」 「laravel」 「card」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 ericlagarda/nova-text-card 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 ericlagarda/nova-text-card 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 ericlagarda/nova-text-card 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A Laravel Nova card that shows you your system information.
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
A Laravel Nova card.
A Laravel Nova package for publishable fields
A Laravel Nova package for translatable fields
Common libraries used by Zimbra Api
统计信息
- 总下载量: 412.38k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 20
- 点击次数: 25
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-02-22
