go-php-parser

command module
v0.0.0-...-8f4eb4c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 23, 2022 License: GPL-3.0 Imports: 10 Imported by: 0

README

Simple AST generation in PHP vs Go

This is a small test to check performance of solutions to generate ASTs of PHP code in Go and PHP.

Requirements

  • PHP 7.4 or up.
  • Composer.
  • Go 1.18 or up.

Go

  1. Build a binary with go build -mod=readonly.
  2. Run it with ./go-php-parser <absolute path to source PHP file>.

PHP

  1. Install dependencies with composer install.
  2. Run php index.php <absolute path to source PHP file>

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL