Download the PHP package ufo-tech/json-rpc-sdk-bundle without Composer

On this page you can find all versions of the php package ufo-tech/json-rpc-sdk-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package json-rpc-sdk-bundle

UFO Tech json-rpc-sdk-bundle

Ukraine

The Symfony bundle for simple usage Json-RPC. And automatically generation SDK from server for Symfony v.6.*

Read the Documentations

About this package

Package for easy api creation SDK and DTO for json-rpc server

License Size package_version fork

Environmental requirements

php_version symfony_version symfony_version

What's new?

Version 1.1

Getting Started

Automatic package installation in Symfony

Step 0 (RECOMMENDED): Configure Composer

In order for your Symfony Flex to automatically make all the necessary settings when you add a package, you need to make the following changes to your composer.json

More about Symfony Flex in doc

Step 1: Installation

From the console in the project folder, run this command to download the latest version of this package:

Step 2: Register the package

Make sure that the bundle is automatically registered in your project's `config/bundles.php' file:

Step 3: Adding parameters

In you can configure generator, to automatically regenerate SDK when server change methods

Here is example with explanation:

.ENV

You can pass tokens to access the provider api via environment variables

Step 4: Generate SDK

You have two options for generating SDK:

  1. Make SDK for one vendor from JsonRPC server.
  2. Generate SDK for every vendor-URL from config file

For single SDK You have to execute with

Example:

For batch generating just run without arguments (arguments will be passed from config)

Done! You have generated SDK.

:warning: NOTE!

RPC server answer will be cached for 1 HOUR. If you need to clear it and request api again, run:

Step 5: Usage of SDK

After generating you are ready to use your SDK.

Here is example of generated SDK.

App\Sdk\Test\PingProcedure

Brilliant. Now let's use it. It is as simple as possible. In your Controllers/Procedures/Commands/e.t.c You just have to call your SDK method from your SDK and pass any required parameters. Like that

Step 6: Profit

When you call your method, this package will make RPC request with configured token, to your server with all parameters, than handle response, under the hood and return you just data which you can use. This lib working like a bridge between your code and remote RPC code just like you use it local.


All versions of json-rpc-sdk-bundle with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2
symfony/framework-bundle Version >=6.4
symfony/serializer Version >=6.4
ufo-tech/json-rpc-client-sdk Version ^3.2
symfony/console Version >=6.4
symfony/http-kernel Version >=6.4
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package ufo-tech/json-rpc-sdk-bundle contains the following files

Loading the files please wait ....