bhuvidya/laravel-parsedown-extra
Composer 安装命令:
composer require bhuvidya/laravel-parsedown-extra
包简介
Laravel Wrapper of Parsedown Extra.
关键字:
README 文档
README
This is based on the Laravel Parsedown package. I have merely done some adjustments to support Parsedown Extra.
Parsedown for Laravel
Note I have now switched the semver versioning for my Laravel packages to "match" the latest supported Laravel version.
A Laravel wrapper of Parsedown Extra to extend its features. If you want to know more about Parsedown Extra alone check out the base repository.
Features
- Blade Directive
- Helper Function
Installation
Parsedown Extra for Laravel is available as a composer package. You can install it using the command below:
composer require "bhuvidya/laravel-parsedown-extra"
Configuration
If you're using Laravel +5.5 you don't need to follow the steps below. The package auto-discovery feature has been implemented and will take care of loading the service provider for you.
But if that's not your case you just need to add the service provider to your config/app.php:
return [ // Other configurations above... 'providers' => [ // Other providers above... Bhuvidya\ParsedownExtra\Providers\ParsedownExtraServiceProvider::class, // Other providers below... ], // Other configurations below... ];
Usage
@parsedownextra('Hello _Parsedown_!')
or (using a helper approach)
{{ parsedownextra('Hello _Parsedown_!') }}
Any of the codes above will generate:
<p>Hello <em>Parsedown</em>!</p>
The helper can also be used with PHP throughout the project.
Lumen Support
As Laravel and Lumen share pretty much the same core the instructions below should be enough to set this package in yout Lumen project.
Enable Facades in Your Project
In your bootstrap/app.php ensure you have the following:
$app->withFacades();
Service Provider Registering
As Lumen does not support package auto-discovery you got to do it manually adding the code below in your bootstrap/app.php:
$app->register(Bhuvidya\ParsedownExtra\Providers\ParsedownServiceProvider::class);
bhuvidya/laravel-parsedown-extra 适用场景与选型建议
bhuvidya/laravel-parsedown-extra 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 79 次下载、GitHub Stars 达 0, 最近一次更新时间为 2018 年 02 月 17 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「extra」 「laravel」 「parsedown」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 bhuvidya/laravel-parsedown-extra 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 bhuvidya/laravel-parsedown-extra 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 bhuvidya/laravel-parsedown-extra 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Extra form types for your Symfony projects
Configurable Markdown to HTML converter with Parsedown Extra.
Some extra stuff for doctrine with MYSQL Plateform.
An extension of Parsedown that adds support for Markdown Extra.
Bundle extension that installs and loads Semantic MediaWiki and associated extensions
A PHP class for browsing multiple trees of markdown files with HTML rendering, syntax highlighting and search
统计信息
- 总下载量: 79
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-02-17