Skip to content

kedniko/php-parser-closure

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP Parser Closure (work in progress)

Quick Start

$parser = new \Kedniko\PhpParserClosure\PhpParserClosure();

$closure = function (int $number) {
  return $number * 2;
};

$parser->parse($closure);
$code = $parser->getCode();

echo $code;
// "function (int $number) {
//   return $number * 2;
// }"

Under the hood this library uses nikic/php-parser.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages