Download the PHP package vinkius-labs/synapse-toon without Composer

On this page you can find all versions of the php package vinkius-labs/synapse-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 synapse-toon

Synapse TOON
High-performance API payload optimization engine for Laravel

Tests License Latest Version Total Downloads PHP 8.2+ Laravel


Synapse TOON transforms verbose JSON API responses into ultra-dense representations, reducing token consumption by 25–45% while preserving full semantic fidelity. Ship faster APIs and pay dramatically less for LLM inference.

Every runtime surface ships with an explicit SynapseToon prefix, making package ownership obvious in your codebase and eliminating class-name collisions.

Highlights

Requirements

Dependency Version
PHP 8.2+
Laravel 11.x | 12.x
ext-brotli Optional (recommended)
ext-zlib Optional

Installation

Publish the configuration file:

Register middleware in bootstrap/app.php:

Quick Start

Encode a response

Stream an LLM response

Route by complexity

Build RAG context

Dispatch a batch job

Architecture Overview

Component Purpose
SynapseToonEncoder / SynapseToonDecoder Lossless TOON codec with dictionary support and entropy-aware heuristics
SynapseToonCompressor Adaptive Brotli, Gzip, and Deflate selection based on Accept-Encoding
SynapseToonSseStreamer Server-Sent Events with zero-copy chunking and buffer flush guardrails
SynapseToonEdgeCache Encode-once edge cache helper tuned for Redis and Octane workloads
SynapseToonMetrics Driver-agnostic metrics (Log, Prometheus, Datadog, or custom drivers)
SynapseToonProcessLLMBatchJob Queue-friendly batch encoder for up to 100 prompts per dispatch
SynapseToonLLMRouter Complexity-aware model router with pluggable LLM client implementations
SynapseToonRagService Vector-store abstraction with snippet thresholds and metadata braiding
SynapseToonGraphQLAdapter Lighthouse / Rebing GraphQL pipeline with TOON encoding built in
SynapseToonPayloadAnalyzer Token analytics and savings calculator for middleware and dashboards

Real-World Impact

Scenario Before After Savings
E-commerce feed (500 items) 47,200 tokens 26,100 tokens 44.7%
Chat completion with context 3,840 tokens 2,310 tokens 39.8%
GraphQL nested query 2,156 tokens 1,405 tokens 34.8%
RAG context injection 1,920 tokens 1,152 tokens 40.0%
Batch job (50 prompts) 12,500 tokens 7,000 tokens 44.0%

Average token reduction: 40.7%

Documentation

Guide Description
Getting Started Installation, first response, and quick tips
Configuration Full reference for every config option
Encoding & Compression TOON algorithm deep-dive and compression strategies
Streaming & SSE Server-Sent Events for real-time LLM responses
Metrics & Analytics Prometheus, Datadog, and custom driver setup
RAG Integration Vector-store abstraction and context building
Batch Processing Queue-native batch encoding and fan-out
GraphQL Adapter Lighthouse / Rebing integration
Edge Cache Multi-tier caching strategies
HTTP/3 Optimization HTTP/3 detection and header optimization
Cost Optimization Maximize ROI with concrete strategies
Performance Tuning Latency and throughput optimization
Technical Reference Container bindings, macros, and full API

Testing

Run the test suite locally via Docker:

Or, if you have PHP 8.2+ installed locally:

Compatibility

Component Support
Laravel 11.x, 12.x
PHP 8.2, 8.3
Octane Swoole, RoadRunner, FrankenPHP
HTTP/3 Full detection and optimization
Brotli Optional (ext-brotli)

Contributing

Contributions are welcome! Please read our Contributing Guide before submitting a pull request.

Security

If you discover a security vulnerability, please review our Security Policy. Do not open a public issue.

Changelog

All notable changes are documented in the Changelog.

License

Copyright 2026 Vinkius Labs

Licensed under the Apache License, Version 2.0. See LICENSE for the full text.


All versions of synapse-toon with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2 || ^8.3
illuminate/support Version ^11.0 || ^12.0
guzzlehttp/guzzle Version ^7.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 vinkius-labs/synapse-toon contains the following files

Loading the files please wait ...