Download the PHP package pjkui/kindeditor without Composer

On this page you can find all versions of the php package pjkui/kindeditor. 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 kindeditor

KindEditor for Yii2

Latest Stable Version Total Downloads License CI

A Yii2 widget wrapper for the KindEditor WYSIWYG HTML editor, with file upload and file-manager endpoints included.

Note: This fork patches several Linux-specific bugs that the upstream YiiChina package could not be updated with. Please follow the usage instructions in this README — examples elsewhere may contain typos that cannot be corrected there.


Languages: 中文


Table of Contents


English

Features

Requirements

Component Version
PHP >= 5.6 (7.4+ recommended)
Yii2 ^2.0

Installation

Install via Composer:

Or add the following to the require section of your composer.json:

Manual installation (not recommended) If you copy the package into `vendor/` without Composer, add the following line to `vendor/composer/autoload_psr4.php` so the classes are autoloaded:

Quick Start

1. Register the upload action in your controller:

⚠️ The action id must be Kupload — the widget hard-codes this route when generating uploadJson / fileManagerJson URLs.

2. Render the widget in your view:

Editor Types

Set editorType to switch between rendering modes:

editorType Description
(default) Full rich-text editor on a <textarea>
uploadButton Text input + "Upload" button for single-file upload
colorpicker Text input + button that opens a color picker
file-manager Text input + button that opens the server file browser
image-dialog Text input + button that opens the image upload dialog
file-dialog Text input + button that opens the generic file dialog

Example — image upload dialog bound to an article_pic attribute:

Configuration

All editor options are passed through the clientOptions array. See the official KindEditor documentation for the full list.

Full example with a custom toolbar:

Upload Action Options

KindEditorAction accepts the following properties when registered in actions():

Property Default Description
php_path @webroot/ Server filesystem path used as the PHP root
php_url @web/ URL that maps to php_path
root_path {php_path}upload/ Upload root on the filesystem
root_url {php_url}upload/ Upload root URL
save_path {root_path} Where new files are written
save_url {root_url} URL prefix for new files
max_size 1000000 (bytes) Maximum upload size
ext_arr see source Allowed extensions keyed by image/flash/media/file

Example — override the upload directory:

Testing

This repository uses PHPUnit for unit tests.

Contributing

Bug reports and pull requests are welcome on GitHub. Please make sure composer test passes before opening a PR.

License

Released under the LGPL license.


中文

Yii2 专用的 KindEditor 富文本编辑器封装,内置上传与文件管理 Action。

说明: 本分支修复了一些 Linux 环境下的 Bug,由于 Yii China 无法更新上游,请以本 README 为准。

环境要求

组件 版本
PHP >= 5.6(推荐 7.4+)
Yii2 ^2.0

安装

推荐使用 Composer:

或将以下内容加入 composer.jsonrequire 部分:

手动安装(不推荐) 如果直接把包放入 `vendor/`,需在 `vendor/composer/autoload_psr4.php` 中添加:

快速开始

1. 在控制器中注册上传 Action:

⚠️ Action 名字必须Kupload,因为 Widget 在生成上传 URL 时硬编码了这个名字。

2. 在视图中渲染:

editorType 配置

editorType 说明
(默认) 富文本编辑器
uploadButton 自定义文件上传按钮
colorpicker 取色器
file-manager 文件管理器
image-dialog 图片上传对话框
file-dialog 文件上传对话框

示例 —— 图片上传对话框:

完整示例

更多 clientOptions 参数请参考 KindEditor 官方文档

测试

许可证

MIT License,详见 license.txt。


All versions of kindeditor with dependencies

PHP Build Version
Package Version
No informations.
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/kindeditor contains the following files

Loading the files please wait ...