Download the PHP package pixelcoda/typo3-storybook-fluid-api without Composer

On this page you can find all versions of the php package pixelcoda/typo3-storybook-fluid-api. 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 typo3-storybook-fluid-api

TYPO3 Storybook Fluid API Extension [Backend]

This TYPO3 extension provides an API to render TYPO3 Fluid templates and partials through HTTP/HTTPS requests. Compatible with TYPO3 12.

Inspired by the Storybook TYPO3 Fluid plugin, this extension extends the functionality to facilitate rendering and testing TYPO3 Fluid templates in external tools such as Storybook or other frontend environments.

Looking for the frontend integration? Check out the TYPO3 Fluid Storybook Frontend.


Features

See her Frontend implementation: TYPO3 Fluid Storybook Frontend.


Requirements


Installation

Install the extension via Composer:

Clear the TYPO3 cache after installation to ensure the extension is loaded:


Usage

API Endpoint

The default API endpoint for rendering templates is:

This endpoint accepts JSON payloads to specify templates, partials, and additional arguments.


Request Structure

You can send a POST request to the endpoint with the following JSON payload:


Response Structure

Success Response

Error Response


Example Workflow with Storybook

This example demonstrates how to integrate a TYPO3 Fluid template (PersonsListTeaserFluid) into Storybook for rendering and interactive customization.

Fluid Template Import

The Fluid renderer is imported using the FluidTemplate function:

Define the Fluid Template Path

Specify the path to the Fluid template:

Default Arguments

Define default values for the template variables:

Storybook Configuration

The PersonsListTeaserFluid story is exported for use in Storybook:

Define the Template

Create a template function that renders the Fluid template:

Export the Story

The story is exported and connected to the default arguments:


Benefits


Contributing

We welcome contributions to improve this extension. If you encounter bugs or have feature suggestions, feel free to open an issue or submit a pull request on GitHub.


License

This extension is licensed under the MIT License.


Credits

Inspired by storybook-typo3fluid. Developed by Casian Blanaru / PixelCoda.


All versions of typo3-storybook-fluid-api with dependencies

PHP Build Version
Package Version
Requires typo3/cms-core Version ^12.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 pixelcoda/typo3-storybook-fluid-api contains the following files

Loading the files please wait ....