Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Json Api Client Bundle Laravel Package

enm/json-api-client-bundle

Symfony integration for enm/json-api-client that lets you configure JSON:API clients in YAML and exposes each as a private service named enm.json_api_client.YOUR_CLIENT_NAME. Works with any PSR-18 HTTP client, such as Buzz with Nyholm PSR-7.

View on GitHub
Deep Wiki
Context7

JSON API Client Bundle

The Symfony integration for enm/json-api-client.

  1. Installation
  2. Configuration
  3. Usage

Installation

composer require enm/json-api-client-bundle

It's recommended to install kriswallsmith/buzz as http-client and nyholm/psr7 for http factories.

composer require kriswallsmith/buzz nyholm/psr7

You can also use any HTTP client which implements PSR-18.

Configuration

<?php
// config/bundles.php
    return [
        // ...
         Enm\Bundle\JsonApi\Client\EnmJsonApiClientBundle::class =>['all'=>true],
        // ...
    ];
enm_json_api_client:
    clients: # requires at least one element, the key will be your client name
        api: 'http://example.com/api'

Usage

The bundle offers a private service (only used for dependency injection, not for direct calls via service container) for each configured client. The service name will be enm.json_api_client.YOUR_CLIENT_NAME.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
elmogy/larafast
xeviant/laravel-paystack
gorilladash/laravel-website-sdk
martialbe/flysystem-oss
chondal/3312client
jeroen-g/flickr
opscale-co/nova-genbi
itsjustvita/laravel-retention
tequilarapido/trackit
gregsphotography/site-builder-filament
cabaoctavio/laravel-query-log
gregsphotography/site-builder-components
io-digital/clickatell
snowsoft/laravel-admin
oxygen/auth
relicsoftware/barakah-payment-gateway
tobya/work-with-composer
equipc/laravel-email-validator
equipc/laravel-email-database-log
adedsec/nova-translated-labels