nepada/texy-nette
Composer 安装命令:
composer require nepada/texy-nette
包简介
Texy integration for Nette.
README 文档
README
Installation
Via Composer:
$ composer require nepada/texy-nette
Register the extension in config.neon:
extensions: texy: Nepada\Bridges\TexyDI\TexyExtension
Usage
Configuration
This extension contains simple Texy factory that only creates new instance of Texy\Texy.
Usually you will want to define your own factory by implementing Nepada\Texy\TexyFactory, often more than one.
texy: factories: foo: @fooTexyFactory bar: @barTexyFactory defaultMode: foo
This example adds two custom factories. Note the names foo and bar - we call these Texy "modes". In different parts of your application you might need to use different mode (i.e. differently configured instance of Texy).
In templates
There are 2 new tags for processing blocks and single lines, both with possibility to specify a custom mode:
{texy fooMode}
- one
- two
{/texy}
<p>
{texyLine barMode}Whatever...{/texyLine}
</p>
Alternatively, you can use one of 3 filters to achieve similar result:
|texy:customModecalls$texyMultiplier->processBlock()|texyLine:customModecalls$texyMultiplier->processLine()|texyTypo:customModecalls$texyMultiplier->processTypo()
In presenters and other controls
The preferred way is to inject Nepada\Texy\TexyMultiplier instance wherever you need it, and either use it directly or pull out desired Texy instance, e.g:
$multiplier->processBlock($text, 'myMode'); $texy = $multiplier->getTexy('myMode');
nepada/texy-nette 适用场景与选型建议
nepada/texy-nette 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 24.77k 次下载、GitHub Stars 达 6, 最近一次更新时间为 2016 年 08 月 23 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「nette」 「latte」 「texy」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 nepada/texy-nette 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 nepada/texy-nette 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 nepada/texy-nette 相关的其它包
同方向 / 同关键字的高下载量 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
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
Cache busting Latte tag.
Universal text parser (Texy, Markdown, Parsedown) for Nette & Nette/Latte
Latte template engine for Laravel
Nette Framework adapter for I18n package
统计信息
- 总下载量: 24.77k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 6
- 点击次数: 17
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2016-08-23