PHPackages                             abrahanzarza/http-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. abrahanzarza/http-bundle

ActiveLibrary[HTTP &amp; Networking](/categories/http)

abrahanzarza/http-bundle
========================

Module that provides HTTP routing, request and response

1.0.0(1y ago)013MITPHPPHP ^8.3

Since Feb 4Pushed 1y ago1 watchersCompare

[ Source](https://github.com/AbrahanZarza/http-bundle)[ Packagist](https://packagist.org/packages/abrahanzarza/http-bundle)[ RSS](/packages/abrahanzarza-http-bundle/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (5)Versions (3)Used By (0)

HTTP Bundle
===========

[](#http-bundle)

[![PHP](https://camo.githubusercontent.com/54b7804384d76a107e2ed3874a2715c33f236220aba6986869de4a3db326eb40/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d382e332d626c7565)](https://camo.githubusercontent.com/54b7804384d76a107e2ed3874a2715c33f236220aba6986869de4a3db326eb40/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d382e332d626c7565)

This library provides a micro HTTP framework with basics, routing and dependency injection container.

Setup
-----

[](#setup)

For using this library in your proyect, install it via [composer](https://getcomposer.org/) or add it manually in your `composer.json` file.

```
composer require abrahanzarza/http-bundle

```

This will install the latest version in your project.

Usage
-----

[](#usage)

### Basic configuration

[](#basic-configuration)

Here is an extract of code for basic configuration usage. At this example we can see that our application is a `HttpBundle` instance. This instance receive a `Symfony\Component\HttpFoundation\Request` request param and returns a `Symfony\Component\HttpFoundation\Response` that is returned to the client.

```
