Download the PHP package storyblok/richtext-resolver without Composer

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

Storyblok PHP Richtext Renderer

This package allows you to get an HTML string from the richtext field of Storyblok.

Installing the Storyblok PHP Richtext Renderer

You can install the Storyblok PHP Richtext Renderer via composer. Storyblok PHP Richtext Renderer requires PHP version 7.3 to 8.2. The suggestion is to use an actively supported version of PHP (8.1 and 8.2).

If you want to install the stable release of Storyblok PHP Richtext Renderer you can launch:

If you want to install the current development release, you can add the version dev-master:

For executing the command above, you need to have composer installed on your development environment. If you need to install Composer, you can follow the official Composer documentation:

We suggest using the latest version of PHP.

Usage:

Instantiate the Resolver class:

Use the function render() to get the html string from your richtext field.

How to define a custom schema for resolver?

Make a copy of the default schema storyblok-php-richtext-renderer/src/Schema.php and add your own schema as parameter to the Richtext class.

Testing

We use PHPUnit for tests. You can execute the following composer task to run the tests:

If you want to generate the coverage report you can launch:

You will find the HTML reports in the coverage/ directory.

Code Style guide

For consistency, we are using PHP Coding Standards Fixer tool, for checking and fixing the code to follow standards.

For checking the code you can execute:

If you want to automatically fix the code to follow standards:

If you want to execute fix and test coverage:

Contribution

Fork me on Github


All versions of richtext-resolver with dependencies

PHP Build Version
Package Version
Requires php Version >=7.3.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 storyblok/richtext-resolver contains the following files

Loading the files please wait ....