Download the PHP package pjkui/yii2-markdown without Composer

On this page you can find all versions of the php package pjkui/yii2-markdown. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package yii2-markdown

yii2-markdown

CI codecov Latest Stable Version Total Downloads License PHP

yii2-markdown 是一个基于 Cherry Markdown 与 Vditor 封装的 Yii2 扩展,支持 双引擎——用户可在编辑器工具栏中随时在 Markdown 源码模式与所见即所得(WYSIWYG)模式之间切换,无需刷新页面。

核心能力:


安装


快速开始

纯 Markdown 模式(默认)

所见即所得模式(WYSIWYG)

双引擎可切换(推荐)

默认以 Markdown 模式启动,工具栏末尾自动注入蓝色 V 按钮(切换到 WYSIWYG),切换后变为蓝色 M 按钮(切回 Markdown)。

必须在页面中注册资源,否则切换时 Vditor 未加载会失败:

表单后端接收(切换后会多出 _md / _html 两个隐藏字段):


只读预览


切换事件监听


编程式切换


目录结构


本机 Demo

Demo 页支持:


文档

文档 说明
usage.md 完整使用示例
configuration.md 所有配置项说明
migration-guide.md v1.3+ 双引擎升级指南
testing.md 测试与可视化验证

测试

项目同时维护 PHPUnit、Jest 和 Playwright 三套测试,共 78 tests。每次 push 到 master 或创建 PR 时,GitHub Actions 会自动运行全套测试(PHP 8.1/8.2/8.3 × msedge)。

首次运行前安装依赖:

测试套件

目录 工具 内容
tests/ PHPUnit PHP 组件单元 + 集成测试
tests/unit/converter/ Jest Markdown↔HTML 转换器,含覆盖率(93%)
tests/e2e/ Playwright 双引擎切换 E2E 回归(T1–T9、E1–E7、R1–R6)

All versions of yii2-markdown with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
yiisoft/yii2 Version ~2.0.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package pjkui/yii2-markdown contains the following files

Loading the files please wait ...