From 93ec9722cde002d9e78bab57bad89fea14b8ef9d Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Sat, 5 Sep 2020 22:39:01 +0200 Subject: [PATCH] Update README --- README.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 193c00c..c6eb7f6 100644 --- a/README.md +++ b/README.md @@ -2,9 +2,6 @@ **Write and deploy modern PHP 8 code, today.** -Created by [Daniil Gentili](https://daniil.it) - -## WIP :) This is a transpiler that will allow native usage of php8 features and especially syntax in projects and libraries, while allowing maintainers to publish a version targeting 7.0 or even lower versions of php. @@ -12,6 +9,8 @@ The transpiler will seamlessly hook into composer to transpile the package (and This project is mostly ready, but I would love some feedback on design and APIs. +Created by [Daniil Gentili](https://daniil.it) + ## Design After [hooking into composer](https://github.com/danog/phabel/tree/master/src/Composer) by specifying a custom repository, the transpilation process begins. @@ -38,7 +37,7 @@ A second, optional parameter can be provided, to allow the [Traverser](https://g #### 3.2 Plugin dependencies -Plugins can also specify other plugins as "dependencies" or "reverse dependencies", with the `runBefore` , `runAfter` , `runWithBefore` , `runWithAfter` methods, to force some transforms to run before others. +Plugins can also specify other plugins as "dependencies" or "reverse dependencies", with the `runBefore`, `runAfter`, `runWithBefore`, `runWithAfter` methods, to force some transforms to run before others. By using the `*with*` methods, additional plugin graph optimization is allowed by merging multiple transforms in a single AST traversal. Each [phabel plugin](https://github.com/danog/phabel/blob/master/src/PluginInterface.php) can also accept a configuration: this a simple way to reuse code, by specifying a single plugin for a class of transforms, and then requiring it from other plugins, specifying a specific configuration to trigger only certain transforms.