Skip to content

Commit ce0e7f1

Browse files
committed
Update README.md
The README.md file was updated to include the steps for a Mezzio Application configuration
1 parent b0b4d6f commit ce0e7f1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ This library cannot by design ensure you get correct and trustworthy results if
6262

6363
`composer require akrabat/ip-address-middleware`
6464

65+
In Mezzio, copy `Mezzio/config/ip_address.global.php.dist` into your Mezzio Application `config/autoload` directory as `ip_address.global.php`
66+
6567
## Usage
6668

6769
In Slim 3:
@@ -78,12 +80,13 @@ $app->get('/', function ($request, $response, $args) {
7880
});
7981
```
8082

81-
In Laminas, add to your `pipeline.php` config at the correct stage, usually just before the `DispatchMiddleware`:
83+
In Laminas or Mezzio, add to your `pipeline.php` config at the correct stage, usually just before the `DispatchMiddleware`:
8284
```php
8385
# config/pipeline.php
8486
# using default config
8587
$app->add(RKA\Middleware\IpAddress::class);
8688
```
89+
If required, update your `.env` file with the environmental variables found in `/config/autoload/ip_address.global.php`.
8790

8891
## Testing
8992

0 commit comments

Comments
 (0)