Download the PHP package software-technologies-limited/stl-rich-text-editor without Composer

On this page you can find all versions of the php package software-technologies-limited/stl-rich-text-editor. 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 stl-rich-text-editor

STL Rich Text Editor

STL Rich Text Editor is a standalone rich-text editor for PHP applications. It contains its own PHP renderer, vanilla JavaScript editor, styles, toolbar, sanitizer, history, and upload hooks. It does not require CKEditor, KCFinder, jQuery, npm, Laravel, Yii, Symfony, or any other runtime package.

This project continues the Git history of 2amigos/yii2-ckeditor-widget, but version 3 is an independent implementation. It is not CKEditor and is not affiliated with or endorsed by CKSource or the original maintainers.

Requirements

Installation

Copy vendor/software-technologies-limited/stl-rich-text-editor/src/assets into public/vendor/stl-rich-text-editor, or in Laravel run php artisan vendor:publish --tag=stl-rich-text-editor-assets.

Raw PHP

The editor synchronizes sanitized HTML into its named <textarea>, so ordinary form submission works without special server integration.

Presets

Image uploads

Set an upload endpoint to replace the image URL prompt with a file picker:

The endpoint must accept multipart/form-data and return {"url":"/path/image.webp"}. Authentication, authorization, MIME inspection, size limits, safe filenames, storage, and generated URLs remain the application's responsibility.

Themes, localization, events, and extensions

Pass theme, labels, and sanitizer through the editor options. Themes use shared --stl-control-* CSS tokens. The editor emits stl:rte-ready and stl:rte-change DOM events. Register first-party application commands before initialization:

Include highlight in a custom toolbar. Sanitizer allowlists accept tags, globalAttributes, and per-tag attributes options.

Laravel

Construct the objects in a controller, component, or view model and render them as intentional component HTML in Blade:

Read the submitted HTML through the ordinary request API.

Yii

The framework-neutral renderer works directly in a Yii view:

Load Assets once in the layout or view. Yii is not installed or required.

Security

The browser sanitizer removes scripts, event handlers, inline styles, unsafe URLs, and unsupported elements before form synchronization. Client-side sanitization is not a security boundary. Applications must sanitize submitted HTML again on the server using rules appropriate to their threat model.

Upload endpoints must enforce authentication, authorization, MIME inspection, file-size limits, safe filenames, and non-executable storage.

Development checks

GitHub Actions runs these checks on PHP 8.1 through 8.5.

Credits

License

BSD-3-Clause. See LICENSE.md. Original notices are retained.


All versions of stl-rich-text-editor with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
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 software-technologies-limited/stl-rich-text-editor contains the following files

Loading the files please wait ...