yaangvu / laravel-rpc
Easy implementation of the JSON-RPC 2.0 server for the Laravel framework.
Requires
- ext-json: *
- doctrine/annotations: ^2.0
- laravel/framework: ^9.2
- phpdocumentor/reflection-docblock: ^5.2
Requires (Dev)
- laravel/pint: ^1.2
- orchestra/testbench: ^7.0
- phpunit/php-code-coverage: ^9.2
- phpunit/phpunit: ^9.4
- symfony/var-dumper: ^6.0
- vimeo/psalm: ^5.1
Suggests
- ext-zlib: Required to compress the response into gzip
- sajya/client: HTTP(S) client for JSON-RPC 2.0
Conflicts
- laravel/framework: <9.32.0
- league/flysystem: <3.0.16
- mockery/mockery: <1.4.2
README
Introduction
Sajya is an open-source project that makes it easy to implement the JSON-RPC 2.0 server specification for Laravel. With Sajya, you can quickly and easily set up a JSON-RPC server that supports all of the features of the JSON-RPC 2.0 specification, including validation of parameters, support for batch and notification requests, and more.
Key features:
- Easy to use: Sajya is designed to be simple to install and use, so you can get your server up and running quickly.
- Customizable: You can customize many aspects of your server, including the routes, parameter validation, and error messages.
- Well-documented: The project comes with complete documentation that includes detailed instructions and a reference guide for all of its features.
- Route Model Binding: You can quickly and easily define routes parameters for your models.
- Validation of parameters: The project automatically validates incoming requests to ensure they meet your specifications. You can also customize the error messages that are returned if the validation fails.
- Support for batch and notification requests: The project supports both batch requests, where multiple requests are combined into a single HTTP request, and notification requests, where the server does not generate a response.
Official Documentation
You can find the complete documentation for Sajya on its website. The documentation includes detailed instructions on how to install and use Sajya, as well as a reference guide for all of its features.
Changelog
To learn about the latest updates and changes to Sajya, please see the CHANGELOG. The changelog includes a list of all the changes made to Sajya in each release, along with the corresponding version number.
Contributing
We welcome contributions to Sajya. If you are interested in contributing, please see CONTRIBUTING for details on how to get started. Contributions can include bug fixes, new features, and improvements to the documentation.
Maintainers
Sajya is developed and maintained by Alexandr Chernyaev. Alexandr is the main author and maintainer of Sajya, and is responsible for coordinating the development and release of new versions.
License
Sajya is released under the MIT License. Please see the License File for more information. The MIT License is a permissive license that allows you to use and modify Sajya for any purpose, as long as you include the original copyright and license notice in your copies.