Python variant
Merge remote-tracking branch 'origin/master'
Fix spelling mistakes for PHP
Porting Python variant