aubreypwd / php-s-wp
A few fixes to make WordPress and php -S work well together.
Installs: 16
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Open Issues: 0
pkg:composer/aubreypwd/php-s-wp
This package is not auto-updated.
Last update: 2024-11-29 03:12:18 UTC
README
This package is intened to be installed in the WordPress root and loaded via autoload.php
so WordPress plays nicely with php -S
.
Installation & Use
composer require aubreypwd/php-s-wp
Then in your wp-config.php
make sure and require autoload.php
e.g.:
if ( file_exists( __DIR__ . '/vendor/autoload.php' ) ) { require_once __DIR__ . '/vendor/autoload.php'; }
Fixes accessing e.g. /wp-admin
w/out trailing slash
Now you can start up php -S
in your WordPress root and places like http://localhost:8000/wp-admin
will be automatically re-directed to http://localhost:8000/wp-admin/
so things don't break.