Download the PHP package rrp/t3-toon without Composer

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

TOON for TYPO3

Token-Optimized Object Notation for AI & LLM Workflows

Version 4.1.0 License TYPO3 12-14 PHP 8.1+


v4.0 — now fully spec-compliant. This release implements the official TOON Specification v3.3 and passes the complete language-agnostic conformance suite (389/389 encode + decode fixtures). See Specification compliance below. v4.0 is a breaking change from the 3.x custom format — review the migration notes before upgrading.

✨ What is TOON?

TOON (Token-Oriented Object Notation) is a compact, human-readable, token-efficient text format for the JSON data model, purpose-built for AI prompts and LLM contexts. This extension is a spec-compliant TOON encoder/decoder for TYPO3.

It helps you:


🚀 Key Features


📦 Installation

➤ TYPO3 Extension Repository (TER)

Install via the TYPO3 backend or directly from TER:

🔗 https://extensions.typo3.org/extension/rrp_t3toon


➤ Composer (Packagist)

Recommended for Composer-based TYPO3 projects: 🔗 https://packagist.org/packages/rrp/t3-toon

🧠 Quick Usage Example

Static API (convenience, no DI):

Instance API (recommended in TYPO3 for dependency injection):

Output (TOON):

Configuration options

Override encoding/decoding per call with EncodeOptions and DecodeOptions (null = use extension config from Install Tool):

Extension config (Install Tool → Settings → Extension Configuration → rrp_t3toon) provides defaults:

Key Values Default Applies to
enabled bool 1 encode (passthrough when off)
indent int ≥ 1 2 encode
delimiter comma / tab / pipe comma encode
key_folding off / safe safe encode (§13.4)
flatten_depth int (-1 = unbounded) 2 encode (key folding)
strict bool 1 decode (§14)
expand_paths off / safe off decode (§13.4)
show_default_example bool 1 Playground (prefill sample on first load)

Note on enabled: when this flag is turned off, Toon::encode() and Toon::convert() short-circuit and return the input as-is (string verbatim, or json_encode($input) for arrays/objects). This lets you toggle optimization globally without code changes. Calls are still logged so you can see in the Logs module which requests ran with optimization on vs off.

Global helpers

When the extension is loaded, these global functions are available (no use needed):

Fluid ViewHelpers

In Fluid templates, add the namespace and use:

Backend modules

Tools → TOON Playground

Encode and decode TOON in the browser:

TOON Logs (View Logs button)

The Logs screen is part of the same module — open it with the View Logs button in the Playground header (and Back to Playground to return); there is no separate menu entry.

Every successful encode / convert call (from anywhere — Playground, ViewHelpers, helper functions, programmatic API, scheduler tasks, CLI commands) is recorded in tx_rrpt3toon_log. The screen lists those rows with:

The schema must be migrated once after installation:

For development / demos a CLI seed command is available:

Error handling

Decoding malformed TOON throws RRP\T3Toon\Exception\ToonDecodeException with line number and snippet:


📚 Documentation

Full documentation, configuration, and advanced usage are available here:

🔗 https://docs.typo3.org/p/rrp/t3-toon/main/en-us/


🧩 Use Cases


🧰 Compatibility

TYPO3 PHP Extension Version TOON Spec
12.x – 14.x ≥ 8.1 v4.1.0 v3.3

✅ Specification compliance

As of v4.0.0, this extension implements the official TOON Specification v3.3 and passes the complete language-agnostic conformance suite — 389/389 fixtures (153 encode + 236 decode), covering primitives, objects, primitive/tabular/nested/mixed arrays, all three delimiters (comma, tab, pipe), quoting and escaping rules, canonical number formatting, root-form detection, strict-mode validation errors, blank-line and indentation rules, key folding, and path expansion.

The vendored fixtures live in Tests/Fixtures/spec/ (see PROVENANCE.txt for the pinned spec commit). Run them with:

The spec engine lives in Classes/Spec/ (Encoder, Decoder) and is dependency-free; the TYPO3 service layer (Toon, ToonEncoder, ToonDecoder) is a thin adapter over it.

Upgrading from 3.x (breaking changes)

v3.x emitted a TYPO3-specific “TOON-inspired” format. v4.0 emits standards-compliant TOON, so output bytes differ. Notable changes:


👨‍💻 Authors


💡 Contributing

Contributions are welcome and appreciated ❤️


📜 License

Licensed under the MIT License — free for personal and commercial use.


Made with 🧡 for the TYPO3 Developer


All versions of t3-toon with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
ext-json Version *
ext-mbstring Version *
typo3/cms-core Version ^12.4 || ^13.4 || ^14
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 rrp/t3-toon contains the following files

Loading the files please wait ...