Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ jobs:
- "8.1"
- "8.2"
- "8.3"
- "8.4"

steps:
- name: Checkout
Expand Down
3 changes: 0 additions & 3 deletions .laminas-ci.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
{
"ignore_php_platform_requirements": {
"8.4": true
},
"backwardCompatibilityCheck": true
}
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2021 DotKernel
Copyright (c) 2021 Dotkernel

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# dot-response-header

![OSS Lifecycle](https://img.shields.io/osslifecycle/dotkernel/dot-response-header)
![PHP from Packagist (specify version)](https://img.shields.io/packagist/php-v/dotkernel/dot-response-header/3.4.0)
![PHP from Packagist (specify version)](https://img.shields.io/packagist/php-v/dotkernel/dot-response-header/3.4.1)

[![GitHub issues](https://img.shields.io/github/issues/dotkernel/dot-response-header)](https://github.com/dotkernel/dot-response-header/issues)
[![GitHub forks](https://img.shields.io/github/forks/dotkernel/dot-response-header)](https://github.com/dotkernel/dot-response-header/network)
Expand All @@ -15,11 +15,11 @@ Middleware for setting and overwriting custom response headers.

## Requirements

- PHP >= 8.1
- **PHP**: 8.1, 8.2, 8.3 or 8.4

## Installation

Run the following command in your project root directory
Run the following command in your project root directory:

```shell
composer require dotkernel/dot-response-header
Expand All @@ -31,7 +31,7 @@ Next, register the package's `ConfigProvider` to your application config.
Dot\ResponseHeader\ConfigProvider::class,
```

Note: Make sure to register the package under the `// DK packages` section.
> Make sure to register the package under the `// DK packages` section.

After registering the package, add it to the middleware stack in `config/pipeline.php` after `$app->pipe(RouteMiddleware::class);`

Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"name": "dotkernel/dot-response-header",
"type": "library",
"description": "DotKernel middleware for setting custom response headers.",
"description": "Dotkernel middleware for setting custom response headers.",
"license": "MIT",
"homepage": "https://github.com/dotkernel/dot-response-header",
"authors": [
{
"name": "DotKernel Team",
"name": "Dotkernel Team",
"email": "team@dotkernel.com"
}
],
Expand All @@ -28,7 +28,7 @@
"laminas/laminas-coding-standard": "^3.0",
"laminas/laminas-diactoros": "^3.1",
"phpunit/phpunit": "^10.2",
"vimeo/psalm": "^5.13"
"vimeo/psalm": "^6.0"
},
"autoload": {
"psr-4": {
Expand Down
6 changes: 3 additions & 3 deletions docs/book/v3/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Requirements

- PHP >= 8.1
- **PHP**: 8.1, 8.2, 8.3 or 8.4

## Register ConfigProvider

Expand All @@ -12,7 +12,7 @@ Next, register the package's `ConfigProvider` to your application config.
Dot\ResponseHeader\ConfigProvider::class,
```

Note : Make sure to register the package under the `// DK packages` section.
> Make sure to register the package under the `// DK packages` section.

## Add the package to the middleware stack

Expand All @@ -25,7 +25,7 @@ $app->pipe(\Dot\ResponseHeader\Middleware\ResponseHeaderMiddleware::class);

## Add configuration in autoload

Create a new file `response-header.global.php` in `config/autoload` with the below configuration array :
Create a new file `response-header.global.php` in `config/autoload` with the below configuration array:

```php
<?php
Expand Down
4 changes: 3 additions & 1 deletion docs/book/v3/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@

Install dotkernel/dot-response-header by executing the following Composer command in your project directory:

composer require dotkernel/dot-response-header
```shell
composer require dotkernel/dot-response-header
```
2 changes: 1 addition & 1 deletion docs/book/v3/overview.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Overview

`dot-response-header` is DotKernel's middleware for setting and overwriting custom response headers.
`dot-response-header` is Dotkernel's middleware for setting and overwriting custom response headers.
2 changes: 1 addition & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ nav:
- Configuration: v3/configuration.md
- Usage: v3/usage.md
site_name: dot-response-header
site_description: "DotKernel's middleware for setting and overwriting custom response headers."
site_description: "Dotkernel's middleware for setting and overwriting custom response headers."
repo_url: "https://github.com/dotkernel/dot-response-header"
plugins:
- search