Download the PHP package silverstripe-australia/silverstripe-cleancontent without Composer

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

SilverStripe Clean Content module

A module that provides HTML Tidy and Purify capabilities

Note: This is the SS3 version of the module! Please checkout the ss24 branch for the SilverStripe 2.4 compatible version

Basic Usage

Add the module to your project, and add the appropriate extension to your data objects via your site's mysite/_config.php file

Object::add_extension('Page', 'CleanContentExtension');

You can have tidy/purify applied to Content fields when content is saved by selecting options on the Content / Cleaning tab, or use the $Clean(FieldName) option from your templates. Using $Clean on its own will by default use the Content field.

Note that for $Clean to work, you must still select the appropriate cleaning options on the Content / Clean tab.

By default, new pages have cleaning on save enabled, with HTML Tidy in effect, but not Purify. This can be changed by setting the statics in CleanContentExtension, which default as follows.

static $clean_on_save = true;
static $default_tidy = true;
static $default_purify = false;

Maintainer Contacts

Requirements

License

This module is licensed under the BSD license at http://silverstripe.org/BSD-license

This module makes use of the HTML Purifier library from http://htmlpurifier.org/ which is licensed under the Lesser GPL, a copy of which can be found at cleancontent/code/thirdparty/htmlpurifier-4.0.0-lite/LICENSE

Project Links


All versions of silverstripe-cleancontent with dependencies

PHP Build Version
Package Version
Requires neitanod/forceutf8 Version dev-master#2c1b21e00ed16b2b083ae4e27901cb5f2856db90
ezyang/htmlpurifier Version dev-master#c67e4c2f7e06f89ca0eb4ce72b191144e40dc3ef
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 silverstripe-australia/silverstripe-cleancontent contains the following files

Loading the files please wait ....