nexuslinkservices / link-email-highlighter
v1.1.0
2016-08-19 10:58 UTC
Requires
- php: >=5.6.2
Requires (Dev)
- phpunit/phpunit: 5.5.*
- symfony/yaml: ~2.3|~3.0
This package is not auto-updated.
Last update: 2024-09-14 19:53:03 UTC
README
定义以下属性以在文件中高亮显示,并根据您的需求将其值设置为true/false
例如:我想仅在我内容中突出显示链接,因此我需要在配置yaml文件中定义以下变量。
highlighting_enabled:
link: true
mail: false
Note(s):
1. If configuration yaml is not there in your project then the default configuration will be taken into consideration.
2. The bundle uses symfony yaml component to parse the yaml configuration.
以下是实现工作的参考代码
/**
* CODE
* create a new object of HighLighter class
*/
$highLighter = new HighLighter($pathToYaml); //$pathToYaml is optional as mentioned earlier
$highLightedContent = $highLighter->HighLight($contentToBeHighlighted);
就这些了,这就是这个包。
贡献
欢迎提交拉取请求。