biurad/http-galaxy

Http Galaxy: abstraction for HTTP request, response, and csp protection. Provides careful data sanitization and utility for URL and cookies manipulation.

v0.1.4 2020-06-23 04:13 UTC

This package is auto-updated.

Last update: 2021-05-26 06:42:59 UTC


README

HTTP request and response are encapsulated in Biurad\Http\Request and Biurad\Http\Response objects which offer comfortable API and also act as sanitization filter. This package uses guzzlehttp/psr7.

Please note that you can get the documentation for this dependency on guzzlehttp website, psr7

Installation

The recommended way to install Http Manager is via Composer:

composer require biurad/biurad-http

It requires PHP version 7.1 and supports PHP up to 7.4. The dev-master version requires PHP 7.2.

How To Use

You have no limitation to what you can do with this package. This package has two factories that implements Psr17 http factories. This package is shipped with two http factories, thus Biurad\Http\Factory\GuzzleHttpPsr17Factory and Biurad\Http\Factory\LaminasPs17Factory, you can create you custom factory by extending it to abstract class Biurad\Http\Factory\Psr17Factory.

If you are using a different package for psr7 http messages, and you want to migrate it this package, use our Biurad\Http\Factory\Psr17Bridge.

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Testing

To run the tests you'll have to start the included node based server if any first in a separate terminal window.

With the server running, you can start testing.

vendor/bin/phpunit

Security

If you discover any security related issues, please report using the issue tracker. use our example Issue Report template.

Want to be listed on our projects website

You're free to use this package, but if it makes it to your production environment we highly appreciate you sending us a message on our website, mentioning which of our package(s) you are using.

Post Here: Project Patreons - https://patreons.biurad.com

We publish all received request's on our website.

Credits

Support us

Biurad Lap is a webdesign agency in Accra, Ghana. You'll find an overview of all our open source projects on our website.

Does your business depend on our contributions? Reach out and support us on to build more project's. We want to build over one hundred project's in two years. Support Us achieve our goal.

Reach out and support us on Patreon. All pledges will be dedicated to allocating workforce on maintenance and new awesome stuff.

Thanks to all who made Donations and Pledges to Us.

License

The BSD-3-Clause . Please see License File for more information.