khaledsabbah/integrations-http

HTTP integration helpers (requests, responses, middlewares, logging, enums, validation) for Laravel apps.
3,257
Install
composer require khaledsabbah/integrations-http
Latest Version:v1.2.2
PHP:>=8.1
License:MIT
Last Updated:Dec 28, 2025
Links: GitHub  ·  Packagist
Maintainer: khaledsabbah

Laravel integration

Publish config with:

php artisan vendor:publish --provider="Idaratech\Integrations\IntegrationsServiceProvider" --tag=config

Method & Content-Type Enums

Use MethodEnum for HTTP verbs and ContentTypeEnum for clean content-type headers:

use Idaratech\Integrations\Http\Enums\Method as M;
use Idaratech\Integrations\Http\Enums\ContentType as CT;
use Idaratech\Integrations\Http\Enums\HeaderKey as HK;

$request->headers()[HK::CONTENT_TYPE->key()] = CT::JSON->mime();

public function method(): M
{
    return M::POST;
}

Related Packages