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
Jsonrpc Bundle

Jsonrpc Bundle Laravel Package

sb15/jsonrpc-bundle

SB15 JSON-RPC Bundle provides JSON-RPC 2.0 support for PHP applications, offering bundle integration for routing, request handling, method dispatch, and service exposure. It helps expose application services through a centralized JSON-RPC API with transport and handler configuration.

View on GitHub
Deep Wiki
Context7

At a glance

Frequently asked questions about Jsonrpc Bundle
How do I install and register sb15/jsonrpc-bundle in Laravel?
Install it with Composer using composer require sb15/jsonrpc-bundle. Then follow the bundle's registration instructions for your Laravel version, which typically means publishing any provided configuration and registering the service provider or bundle entry point. Confirm the JSON-RPC endpoint route is loaded before sending test requests.
Does sb15/jsonrpc-bundle support JSON-RPC 2.0?
Yes. The package is described as providing JSON-RPC 2.0 support for PHP applications, including routing, request handling, method dispatch, and service exposure. That means it is intended to handle standard JSON-RPC 2.0 request and response structures rather than a custom RPC format.
How do I expose a Laravel service through sb15/jsonrpc-bundle?
Expose services by mapping JSON-RPC method names to handlers or application services in the bundle's handler configuration. Keep the mapping explicit so only intended public methods are reachable through the centralized JSON-RPC API. Then route client calls to those configured method names and return JSON-RPC-compatible results.
How does routing work for JSON-RPC requests in this bundle?
The bundle provides routing integration for JSON-RPC endpoints, so requests can be sent to a configured API route and dispatched by method name. In most JSON-RPC setups this means a single HTTP endpoint handles many method calls rather than one Laravel route per operation. Check the package configuration for the route path and middleware you want to apply.
Can I configure transports and handlers in sb15/jsonrpc-bundle?
The package description explicitly includes transport and handler configuration. Use those settings to control how JSON-RPC requests are received and which handlers or services process each method. Review the bundle's configuration files for the available transport options and handler registration format.
Which Laravel versions are supported by sb15/jsonrpc-bundle?
The provided package context does not list an explicit Laravel version matrix. Check the repository's composer.json and README for PHP and Laravel framework constraints before installing. Composer will enforce those constraints, and you should run your test suite after adding it to confirm compatibility.
How do I test JSON-RPC methods in a Laravel application?
Write HTTP tests that post JSON-RPC 2.0 payloads to the configured endpoint and assert the JSON result or error object. Also unit test the underlying handler or service classes directly so method dispatch is not the only coverage. Include tests for invalid methods, malformed parameters, and authentication behavior.
What should I check before using sb15/jsonrpc-bundle in production?
Restrict which methods are exposed and add authentication and authorization middleware to the JSON-RPC endpoint. Validate parameters inside handlers, avoid leaking internal exception details in JSON-RPC errors, and log requests for auditing. Also apply rate limiting, use HTTPS, and test error handling under realistic failure conditions.
Is sb15/jsonrpc-bundle better than a custom JSON-RPC controller in Laravel?
It can be a good fit if you want centralized routing, request handling, method dispatch, and handler configuration instead of hand-building those pieces. A custom controller may be simpler for a tiny API with one or two methods and no need for a dispatch layer. Evaluate the bundle's documentation, maintenance activity, and test coverage against your project's requirements.
How do I check maintenance and compatibility for sb15/jsonrpc-bundle?
Review the GitHub repository for recent commits, releases, open issues, and the supported PHP and Laravel constraints in composer.json. Pin a tested version in composer.json and review changelogs before updating. If the package is central to your API, add integration tests so upgrades are easy to verify.
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.
socialdept/atp-orm
cboxdk/laravel-assistant-client
socialdept/atp-resolver
socialdept/tenant-domains
tautvydasr/blade-class-names
socialdept/color-scales
maherelgamil/controller
coleus/widgets
coleus/table
coleus/users
coleus/music
coleus/health
coleus/calendar
coleus/notes
coleus/support
coleus/settings
coleus/apps
seampact/laravel
emmyconceptng/laravel-ng-postcode
jjsquady/round-robin