Files
thrift/lib/php/coding_standards.md
Volodymyr Panivko f39cecc4d5 THRIFT-5959: Simplify generator after review (named consts, dedupe, ZEND_STRL)
Client: php
Autor: Volodymyr Panivko

Generated-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

This closes #3449
2026-05-09 14:42:17 +02:00

689 B

PHP Coding Standards

Please follow:

Naming

In addition to PSR-12, Apache Thrift's PHP code does not use leading or trailing underscores on identifiers (properties, methods, constants). Earlier versions of the library carried a Google-C++-style trailing underscore convention on private/protected members; this is no longer accepted. Use plain camelCase for properties and methods, with PHP visibility keywords (private, protected, public) to convey intent.

The phpcs configuration in phpcs.xml.dist enforces PSR-12 across lib/php/lib/ and lib/php/test/.