Skip to content

Commit 5f84cd9

Browse files
authored
Add WordPress limitation section (#303) (#385)
1 parent a4b7cee commit 5f84cd9

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ potentially very difficult to debug due to dissimilar or unsupported package ver
3030
## Table of Contents
3131

3232
- [Installation](#installation)
33-
- [Usage](#usage)
3433
- [Phive](#phive)
3534
- [PHAR](#phar)
3635
- [Composer](#composer)
36+
- [Usage](#usage)
3737
- [Configuration](#configuration)
3838
- [Prefix](#prefix)
3939
- [Finders and paths](#finders-and-paths)
@@ -65,6 +65,7 @@ potentially very difficult to debug due to dissimilar or unsupported package ver
6565
- [Composer](#composer-autoloader)
6666
- [Composer Plugins](#composer-plugins)
6767
- [PSR-0 Partial support](#psr-0-partial-support)
68+
- [WordPress support](#wordpress-support)
6869
- [Contributing](#contributing)
6970
- [Credits](#credits)
7071

@@ -878,6 +879,12 @@ transforming it to PSR-4, i.e. in the case above:
878879

879880
If this will work for the classes under `src/JsonMapper/`, it will not for `JsonMapper.php`.
880881

882+
### WordPress
883+
884+
As of now PHP-Scoper does not easily allow to completely leave unchanged non-included third-party code causing some hurdles with Wordpress plugins. There is a standing issue about providing a better integration out of the box (See [#303][better-wp-support]) but alternatively you can already use [**WP React Starter**][wp-react-starter] which is a boilerplate for WordPress plugins.
885+
886+
If you are not able to migrate you can have a look at the solution itself, read more about it here [#303 (comment)][wp-react-starter-details].
887+
881888

882889
## Contributing
883890

@@ -894,12 +901,15 @@ now been moved under the
894901
[@webmozart]: https://twitter.com/webmozart
895902
[bamarni/composer-bin-plugin]: https://github.com/bamarni/composer-bin-plugin
896903
[Bernhard Schussek]: https://webmozart.io/
904+
[better-wp-support]: https://github.com/humbug/php-scoper/issues/303
897905
[box]: https://github.com/humbug/box
898906
[humbug]: https://github.com/humbug
899907
[releases]: https://github.com/humbug/php-scoper/releases
900908
[symfony_finder]: https://symfony.com/doc/current/components/finder.html
901909
[releases]: https://github.com/humbug/php-scoper/releases
902910
[whitelist]: #whitelist
911+
[wp-react-starter]: https://github.com/devowlio/wp-react-starter
912+
[wp-react-starter-details]: https://github.com/humbug/php-scoper/issues/303#issuecomment-614207305
903913
[patchers]: #patchers
904914
[php-scoper-integration]: https://github.com/humbug/box#isolating-the-phar
905915
[phar-extract-to]: https://secure.php.net/manual/en/phar.extractto.php

0 commit comments

Comments
 (0)