Перейти к содержимому
docs.
WORKSPACE

Документации проектов

Открыть каталог проектов
Localzet ServerАсинхронный PHP-серверTriangleФреймворк и компонентыMIX IDИдентификация и интеграцииHack APIПубличные API хакатонаACNПроект и компонентыUserlay / UserNetПроект и компоненты✓AxiomПроект и компонентыМесседжинг через почтуПроект и компонентыLWT / JWT / JOSEПроект и компонентыФинансовая аналитика KimaiПроект и компонентыМультипарадигмальная БДПроект и компонентыZorin PlatformПроект и компонентыZorin TrustПроект и компонентыFloraScope / VegwatchПроект и компонентыaegis-qДокументация проектаaevumdbДокументация проектаauditДокументация проектаauto-invest-managerАвтотрейдерcaine-companionДокументация проектаcertbot-cloudflareДокументация проектаClusterLocalzet Server / ClustercmdveilДокументация проектаConsolePHP CLICronБиблиотеки Localzet Serverdata-connectorДокументация проектаdevice-controlDevice Controlenn-projectДокументация проектаEventsБиблиотеки Localzet ServerflowsintДокументация проектаforgeДокументация проектаHttpClientБиблиотеки Localzet ServerinterpreterСобственный языкinvariaДокументация проектаkeynotesДокументация проектаknotrouteKnotroutelaravel-personal-analyticsДокументация проектаlocalzet-osДокументация проектаmeridianДокументация проектаMQTTБиблиотеки Localzet Servernano-kernelСобственная ОСNoterДокументация проектаpersonal-analyticsДокументация проектаProxyБиблиотеки Localzet ServerPSRБиблиотеки Localzet ServerPSR-7Библиотеки Localzet Serverrschs-monitorДокументация проектаsemsealДокументация проектаshardsealДокументация проектаSocketIOБиблиотеки Localzet ServerSOCKS5Библиотеки Localzet Serverstandalone-analyticsДокументация проектаstatic-php-cliДокументация проектаStorageБиблиотеки Localzet ServersutureДокументация проектаtempoweaveДокументация проектаttsСинтез речиTunnelБиблиотеки Localzet Serverui-kitUI KitvesperДокументация проектаWebAnalyzerWebAnalyzerzorin-access-brokerДокументация проектаzorin-authority-brokerДокументация проектаzorin-authority-sdk-phpДокументация проектаzorin-authority-sdk-pythonДокументация проектаzorin-authority-sdk-tsДокументация проектаzorin-client-intelДокументация проектаzorin-device-core-aospДокументация проектаzorin-host-agentДокументация проектаzorin-native-labДокументация проектаzorin-nodeДокументация проектаzorin-opsДокументация проектаdonstu-python-sdkДокументация проектаfloortraceFloortraceserver-rsLocalzet Server / Cluster
Каталог
Документация/Userlay / UserNet

xray-grpc

Protobuf schemas and PHP client bindings for an Xray-core API snapshot. These files are an integration layer, not a complete Xray server or a promise of compatibility with every current Xray release.

Русская документация · PHP bindings

src/ contains Xray protobuf schemas; php/ is a separate repository/submodule containing generated PHP messages and gRPC clients. Upstream schema names and package paths refer to XTLS/Xray-core. The exact upstream release of this legacy snapshot is not recorded; determine and record it before upgrading schemas or claiming release compatibility. Preserve upstream notices and applicable licenses when importing a newer snapshot.

The historical .grpc/grpc_php_plugin binary has no recorded compiler provenance/version and is not selected automatically. Choose a locally built or otherwise verified plugin explicitly. Do not treat a checked-in native executable as a portable toolchain.

The script requires protoc 25.8, runs from any working directory and fails on errors. CI checks schema syntax/imports and generated PHP message emission in a temporary directory; it does not overwrite the binding repository.

Окно терминала
bash compile_proto.sh --check
PHP_OUT_DIR=/tmp/xray-php-generated bash compile_proto.sh --php-only
GRPC_PHP_PLUGIN=/absolute/path/to/grpc_php_plugin bash compile_proto.sh

PROTOC can select an absolute compiler path. Obtain protoc from the official v25.8 release. Linux x86_64 archive SHA-256 used by CI: f7873a2b57811575c661faffa847e0e9b1bb06a1aea5021eccb05e8c04b260d5.

For full client generation, use a PHP gRPC plugin built from an explicitly selected official grpc source revision. Record that revision and compare the generated diff before committing; plugin pinning is still a release requirement. Never overwrite manual client wrappers as if they were generated files. Publish and verify the binding commit before updating the parent submodule pointer.

Xray management APIs expose privileged operations. Bind them locally or behind authenticated private transport and access controls. PHP consumer code requires ext-grpc and Composer dependencies; production verification must exercise an actual supported Xray instance, error statuses and timeouts. The unfinished local API wrapper is not part of a verified generated-client release. CI here does not publish to Packagist or deploy an instance.

Исходный код · AGPL-3.0