Skip to content

Commit 19e5c8f

Browse files
authored
Modernize README
1 parent ce909ee commit 19e5c8f

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

README.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,17 @@
44
[![Packagist](https://img.shields.io/packagist/v/php-stubs/wordpress-stubs.svg?color=4CC61E&style=popout)](https://packagist.org/packages/php-stubs/wordpress-stubs)
55
[![Packagist stats](https://img.shields.io/packagist/dt/php-stubs/wordpress-stubs.svg)](https://packagist.org/packages/php-stubs/wordpress-stubs/stats)
66

7-
This package is a fork of `giacocorsiglia/wordpress-stubs`.
87
It provides stub declarations for [WordPress](https://wordpress.org/)
98
core functions, classes and interfaces, **globals are not included**.
109
These stubs can help plugin and theme developers leverage static analysis tools
11-
like [PHPStan](https://github.com/phpstan/phpstan),
12-
which is not able to parse WordPress as it is not OOP code.
10+
like [PHPStan](https://github.com/phpstan/phpstan).
1311

14-
The stubs are generated directly from the [source](https://github.com/johnpbloch/wordpress-core)
15-
using [giacocorsiglia/stubs-generator](https://github.com/GiacoCorsiglia/php-stubs-generator).
12+
The stubs are generated from [@johnpbloch's package](https://github.com/johnpbloch/wordpress-core)
13+
using [php-stubs/generator](https://github.com/php-stubs/generator).
1614

1715
### Requirements
1816

19-
- PHP >=7.1
17+
- PHP 7.1+
2018
- Sodium PHP extension as latest WordPress core uses it and **compat code is removed** from stubs,
2119
Sodium is included in PHP from version 7.2, in 7.1 issue `pecl install libsodium`
2220
or install the `paragonie/sodium_compat` package

0 commit comments

Comments
 (0)