$ composer require ctw/ctw-middleware-trailingslash
jonathanmaron/ctw-middleware-trailingslash
This PSR-15 middleware adds a trailing slash to all URIs, redirecting with an HTTP 301 ("Moved Permanently") Location header.
PHPBSD-3-Clause
This PSR-15 middleware adds a trailing slash to all URIs, redirecting with an HTTP 301 ("Moved Permanently") Location header.
PHPBSD-3-Clause