liventin/base.module.rest.router

Service for subscribe rest methods in bitrix event

Maintainers

Package info

github.com/Liventin/base.module.rest.router

Type:bitrix-d7-module

pkg:composer/liventin/base.module.rest.router

Statistics

Installs: 43

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v1.0.1 2025-09-11 18:10 UTC

This package is auto-updated.

Last update: 2026-03-11 19:08:02 UTC


README

Bitrix Base Module

install | update

"require": {
    "liventin/base.module.rest.router": "@stable"
}

redirect (optional)

"extra": {
  "service-redirect": {
    "liventin/base.module.rest.router": "module.name",
  }
}

PhpStorm Live Template

<?php

namespace ${MODULE_PROVIDER_CAMMAL_CASE}\\${MODULE_CODE_CAMMAL_CASE}\Rest;


use ${MODULE_PROVIDER_CAMMAL_CASE}\\${MODULE_CODE_CAMMAL_CASE}\Service\LazyService;
use ${MODULE_PROVIDER_CAMMAL_CASE}\\${MODULE_CODE_CAMMAL_CASE}\Service\Rest\BitrixRest;
use CRestServer;

class RestExample
{
    #[BitrixRest(LazyService::MODULE_ID, LazyService::MODULE_ID.'.test')]
    public static function test(array ${DS}params, int ${DS}start, CRestServer ${DS}server): void
    {
        //logic
    }
}