Download the PHP package amazeelabs/silverback_gutenberg without Composer

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

Silverback Gutenberg

Helps integrating Drupal's Gutenberg module into Silverback projects.

GraphQL directives

This module provides a set of GraphQL directives that are picked up by the amazeelabs/graphql_directives module. This allows to easily expose Gutenberg blocks through a GraphQL schema.

@resolveEdtiorBlocks

Parse the raw output of a field at a given path and expose its content as structured block data. Allows to define aggregated and ignored blocks:

@resolveEditorBlockType

Retrieve the type of gutenberg block. Useful for resolving types of a block union.

@resolveEditorBlockMarkup

Extract inner markup of a block that was provided by the user via rich HTML.

@resolveEditorBlockAttribute

Retrieve a specific attribute, stored in a block.

@resolveEditorBlockMedia

Resolve a media entity referenced in a block.

@resolveEditorBlockChildren

Extract all child blocks of a given block.

LinkProcessor

The main idea is that all links added to a Gutenberg page are

This helps to

Implementation

The module does most of the things automatically. Yet there are few things developers should take care of.

First, custom Gutenberg blocks which store links in block attributes should implement hook_silverback_gutenberg_link_processor_block_attrs_alter. See silverback_gutenberg.api.php for an example.

Next, GraphQL resolvers which parse Gutenberg code should call LinkProcessor::processLinks before parsing the blocks. See DataProducer/Gutenberg.php for an example.

Validation

Custom validator plugins can be created in src/Plugin/Validation/GutenbergValidator

Field level validation

Example: to validate that an email is valid and required.

Block level validation

Perform custom block validation logic then return the result.

Cardinality validation

Backend

Uses the validateContent() method as a wrapper, with the cardinality validator trait.

Validate a given block type for inner blocks.

Validate any kind of block type for inner blocks.

Validate a minimum with no maximum.

Client side alternative

Client side cardinality validation can also be done in custom blocks with this pattern.

Linkit integration

To enable the integration:


All versions of silverback_gutenberg with dependencies

PHP Build Version
Package Version
Requires drupal/gutenberg Version ^2.8.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 amazeelabs/silverback_gutenberg contains the following files

Loading the files please wait ....