Download the PHP package tourze/http-forward-bundle without Composer

On this page you can find all versions of the php package tourze/http-forward-bundle. 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 http-forward-bundle

HTTP Forward Bundle

中文

Symfony Bundle for HTTP request forwarding with middleware support

An enterprise-grade HTTP request forwarding component with complete forwarding capabilities, middleware system, load balancing, and health checks.

Core Features

Installation

Quick Start

1. Basic Configuration

Create forwarding rules via EasyAdmin:

  1. Visit /admin
  2. Navigate to HTTP ForwardForward Rules
  3. Create a new rule with:
    • Path Pattern: /api/*
    • Backend URL: https://api.example.com
    • Middlewares: Select required middlewares

2. Use Forward Controller

Accessing /forward/api/users will automatically forward to the configured backend.

3. Programmatic Usage

Middleware System

Built-in Middlewares

Middleware Function Use Case
access_key_auth Access key authentication Protect proxy endpoints, verify client identity
auth_header Authorization header management Add/replace Authorization header
header_transform Request header transformation Add, remove, rename request headers
query_param Query parameter handling Modify URL query parameters
xml_to_json XML to JSON conversion Response format transformation
retry Retry mechanism Automatically retry failed requests
fallback Fallback handling Return default response when backend unavailable

Visual Configuration

Configure middlewares via drag-and-drop in EasyAdmin:

  1. Edit a forwarding rule
  2. In the Middlewares field:
    • Select middleware from dropdown
    • Click "Add" button
    • Expand configuration form to fill parameters
    • Drag to adjust execution order

See: Middleware Configuration Guide

Configuration Examples

Access Key Authentication

Authorization Header Management

Header Transformation

Retry Mechanism

Feature Details

Load Balancing

Support multiple backend configuration with automatic healthy node selection:

Health Checks

Use CLI command to check backend status:

Streaming Response

Automatically detect and support SSE streaming:

Request Logging

All forwarding requests are logged in ForwardLog entity:

View in EasyAdmin: HTTP ForwardForward Logs

Configuration Reference

Entity Relationships

Use Cases

API Gateway

OpenAI Proxy

Works with open-ai-http-proxy-bundle to provide complete OpenAI API proxy functionality.

Microservice Routing

Route requests to different microservices based on path rules, supporting:

Testing

Documentation

License

MIT License - See LICENSE file

Related Projects

Provides core forwarding capabilities as infrastructure component for tourze/open-ai-http-proxy-bundle.


Version: 1.0 Maintainer: Tourze Team


All versions of http-forward-bundle with dependencies

PHP Build Version
Package Version
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 tourze/http-forward-bundle contains the following files

Loading the files please wait ...