jeyroik/extas-api-jsonrpc

View on GitHub
README.md

Summary

Maintainability
Test Coverage
![tests](https://github.com/jeyroik/extas-api-jsonrpc/workflows/PHP%20Composer/badge.svg?branch=master&event=push)
![codecov.io](https://codecov.io/gh/jeyroik/extas-api-jsonrpc/coverage.svg?branch=master)
<a href="https://github.com/phpstan/phpstan"><img src="https://img.shields.io/badge/PHPStan-enabled-brightgreen.svg?style=flat" alt="PHPStan Enabled"></a> 
<a href="https://codeclimate.com/github/jeyroik/extas-api-jsonrpc/maintainability"><img src="https://api.codeclimate.com/v1/badges/c58607cca54051a8db95/maintainability" /></a>
<a href="https://github.com/jeyroik/extas-installer/" title="Extas Installer v3"><img alt="Extas Installer v3" src="https://img.shields.io/badge/installer-v3-green"></a>
[![Latest Stable Version](https://poser.pugx.org/jeyroik/extas-api-jsonrpc/v)](//packagist.org/packages/jeyroik/extas-jsonrpc)
[![Total Downloads](https://poser.pugx.org/jeyroik/extas-api-jsonrpc/downloads)](//packagist.org/packages/jeyroik/extas-jsonrpc)
[![Dependents](https://poser.pugx.org/jeyroik/extas-api-jsonrpc/dependents)](//packagist.org/packages/jeyroik/extas-jsonrpc)

# Описание

Extas-совместимый JSON RPC сервер.

# Использование

## Создание операций

Операции создаются с помощью пакета `extas-operations-jsonrpc`:

`extas.json`

```json
{
  "jsonrpc_operations": [
    {
      "name": "jsonrpc.operation.index",
      "...": "the rest operation fields"
    }
  ]
}
```

## Запуск сервера

`# php -S 0.0.0.0:8080 -t vendor/jeyroik/extas-api/public`