Skip to content

Commit ddc195a

Browse files
fix(docs): Update README.md to enhance badge visibility and improve installation instructions. (#75)
1 parent c08240c commit ddc195a

File tree

2 files changed

+22
-22
lines changed

2 files changed

+22
-22
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
- Bug #72: Exclude `phpstan-console.neon` from the package in `.gitattributes` (@terabytesoftw)
77
- Bug #73: Update workflow actions to use `v1` stable version instead of `main`, update `LICENSE.md` (@terabytesoftw)
88
- Bug #74: Update `README.md` to include `Behavior` integration section and example usage (@terabytesoftw)
9+
- Bug #75: Update `README.md` to enhance badge visibility and improve installation instructions (@terabytesoftw)
910

1011
## 0.3.1 August 16, 2025
1112

README.md

Lines changed: 21 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,20 @@
77

88
<p align="center">
99
<a href="https://www.php.net/releases/8.1/en.php" target="_blank">
10-
<img src="https://img.shields.io/badge/PHP-%3E%3D8.1-787CB5" alt="PHP Version">
10+
<img src="https://img.shields.io/badge/%3E%3D8.1-777BB4.svg?style=for-the-badge&logo=php&logoColor=white" alt="PHP version">
1111
</a>
1212
<a href="https://github.com/yiisoft/yii2/tree/2.0.53" target="_blank">
13-
<img src="https://img.shields.io/badge/Yii2%20-2.0.53-blue" alt="Yii2 22.0.53">
13+
<img src="https://img.shields.io/badge/2.0.x-0073AA.svg?style=for-the-badge&logo=yii&logoColor=white" alt="Yii 2.0.x">
1414
</a>
1515
<a href="https://github.com/yiisoft/yii2/tree/22.0" target="_blank">
16-
<img src="https://img.shields.io/badge/Yii2%20-22-blue" alt="Yii2 22.0">
17-
</a>
16+
<img src="https://img.shields.io/badge/22.0.x-0073AA.svg?style=for-the-badge&logo=yii&logoColor=white" alt="Yii 22.0.x">
17+
</a>
1818
<a href="https://github.com/yii2-extensions/phpstan/actions/workflows/build.yml" target="_blank">
19-
<img src="https://github.com/yii2-extensions/phpstan/actions/workflows/build.yml/badge.svg" alt="PHPUnit">
19+
<img src="https://img.shields.io/github/actions/workflow/status/yii2-extensions/phpstan/build.yml?style=for-the-badge&label=PHPUnit" alt="PHPUnit">
2020
</a>
21-
<a href="https://github.com/yii2-extensions/phpstan/actions/workflows/static.yml" target="_blank">
22-
<img src="https://github.com/yii2-extensions/phpstan/actions/workflows/static.yml/badge.svg" alt="Static Analysis">
23-
</a>
21+
<a href="https://github.com/yii2-extensions/phpstan/actions/workflows/static.yml" target="_blank">
22+
<img src="https://img.shields.io/github/actions/workflow/status/yii2-extensions/phpstan/static.yml?style=for-the-badge&label=PHPStan" alt="PHPStan">
23+
</a>
2424
</p>
2525

2626
A comprehensive PHPStan extension that provides enhanced static analysis for Yii2 applications with precise type
@@ -68,14 +68,14 @@ inference, dynamic method resolution, and comprehensive property reflection.
6868
- Support for all Service Locator subclasses (Application, Module, custom classes).
6969
- Type inference with string variables and class name constants.
7070

71-
## Quick start
72-
7371
### Installation
7472

7573
```bash
76-
composer require --dev yii2-extensions/phpstan
74+
composer require --dev yii2-extensions/phpstan:^0.3
7775
```
7876

77+
### Quick start
78+
7979
Create a `phpstan.neon` file in your project root.
8080

8181
```neon
@@ -256,22 +256,21 @@ For detailed configuration options and advanced usage.
256256
- 💡 [Usage Examples](docs/examples.md)
257257
- 🧪 [Testing Guide](docs/testing.md)
258258

259+
## Package information
260+
261+
[![Latest Stable Version](https://img.shields.io/packagist/v/yii2-extensions/phpstan.svg?style=for-the-badge&logo=packagist&logoColor=white&label=Stable)](https://packagist.org/packages/yii2-extensions/phpstan)
262+
[![Total Downloads](https://img.shields.io/packagist/dt/yii2-extensions/phpstan.svg?style=for-the-badge&logo=packagist&logoColor=white&label=Downloads)](https://packagist.org/packages/yii2-extensions/phpstan)
263+
259264
## Quality code
260265

261-
[![Latest Stable Version](https://poser.pugx.org/yii2-extensions/phpstan/v)](https://github.com/yii2-extensions/phpstan/releases)
262-
[![Total Downloads](https://poser.pugx.org/yii2-extensions/phpstan/downloads)](https://packagist.org/packages/yii2-extensions/phpstan)
263-
[![codecov](https://codecov.io/gh/yii2-extensions/phpstan/graph/badge.svg?token=DRcXAg3WGL)](https://codecov.io/gh/yii2-extensions/phpstan)
264-
[![phpstan-level](https://img.shields.io/badge/PHPStan%20level-max-blue)](https://github.com/yii2-extensions/phpstan/actions/workflows/static.yml)
265-
[![style-ci](https://github.styleci.io/repos/701347895/shield?branch=main)](https://github.styleci.io/repos/701347895?branch=main)
266+
[![Codecov](https://img.shields.io/codecov/c/github/yii2-extensions/phpstan.svg?branch=main&style=for-the-badge&logo=codecov&logoColor=white&label=Coverage)](https://codecov.io/github/yii2-extensions/phpstan)
267+
[![PHPStan Level Max](https://img.shields.io/badge/PHPStan-Level%20Max-4F5D95.svg?style=for-the-badge&logo=php&logoColor=white)](https://github.com/yii2-extensions/phpstan/actions/workflows/static.yml)
268+
[![StyleCI](https://img.shields.io/badge/StyleCI-Passed-44CC11.svg?style=for-the-badge&logo=styleci&logoColor=white)](https://github.styleci.io/repos/701347895?branch=main)
266269

267270
## Our social networks
268271

269-
[![X](https://img.shields.io/badge/follow-@terabytesoftw-1DA1F2?logo=x&logoColor=1DA1F2&labelColor=555555&style=flat)](https://x.com/Terabytesoftw)
272+
[![Follow on X](https://img.shields.io/badge/-Follow%20on%20X-1DA1F2.svg?style=for-the-badge&logo=x&logoColor=white&labelColor=000000)](https://x.com/Terabytesoftw)
270273

271274
## License
272275

273-
[![License](https://img.shields.io/github/license/yii2-extensions/phpstan)](LICENSE.md)
274-
275-
## Fork
276-
277-
This package is a fork of [proget-hq/phpstan-yii2](https://github.com/proget-hq/phpstan-yii2) with some corrections.
276+
[![License](https://img.shields.io/github/license/yii2-extensions/phpstan?style=for-the-badge&logo=opensourceinitiative&logoColor=white&labelColor=333333)](LICENSE.md)

0 commit comments

Comments
 (0)