Weave Code
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

Jsonrpc Laravel Package

agentsib/jsonrpc

View on GitHub
Deep Wiki
Context7

Custom transport

You can custom transport class if you want. For example class AgentSIB\JsonRpc\Transports\InternalJsonRpcTransport used for internal requests in tests:

<?php

namespace AgentSIB\JsonRpc\Transports;

use AgentSIB\JsonRpc\JsonRpcServer;

class InternalJsonRpcTransport implements JsonRpcTransportInterface
{
    private $server;

    public function __construct (JsonRpcServer $server)
    {
        $this->server = $server;
    }

    public function sendRequest ($request)
    {
        return $this->server->process($request);
    }
}

Usage:

$server = new JsonRpcServer(new BaseJsonRpcSerializer());
$server->addService(JsonRpcServer::DEFAULT_NAMESPACE, '\\AgentSIB\\JsonRpc\\Services\\FirstJsonRpcService');
$client = new JsonRpcClient(new InternalJsonRpcTransport($server));

Now you can test you server.

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.
nexmo/api-specification
capell-app/block-library
axium/identity
cetria/laravel-dummy-models
cetria/reflection-helper
agropredict/sso-auth-bundle
evolvestudio/spam-protection
datacore/hub-sdk
develia/commons
cuci/prototurk-sdk
cuci/prototurk-sdk-symfony
develia/geo-bundle
dreamzy/livewire-charts
touchestate-sdk/php-sdk
ecotone/kafka
22h/doctrine-garbage-collection-bundle
agtp/agtp-php
agtp/mod-php
splash/sonata-admin
splash/metadata