composer.json: Add ext-json to require

Change-Id: I2839b902e88a91b31b7a873aebebfe00ce4cbd5a
1 file changed
tree: 986185574f2c3ad482af821a896944cea5b954ed
  1. .phan/
  2. benchmarks/
  3. src/
  4. tests/
  5. .editorconfig
  6. .gitattributes
  7. .gitignore
  8. .gitreview
  9. .phpcs.xml
  10. CODE_OF_CONDUCT.md
  11. composer.json
  12. COPYING
  13. Doxyfile
  14. HISTORY.md
  15. phpunit.xml.dist
  16. README.md
README.md

Packagist

IPUtils

Parse, match, and analyze IP addresses and CIDR ranges. This library supports both IPv4 and IPv6.

Additional documentation about the library can be found on mediawiki.org.

Usage

IPSet can be up to 100x faster than calling IPUtils::isInRange() over multiple CIDR specs.

Running tests

composer install --prefer-dist
composer test

History

The IPUtils class started life in 2006 as part of MediaWiki 1.7 (r15572). It was split out of the MediaWiki codebase and published as an independent library during the MediaWiki 1.34 development cycle.

The IPSet class was created by Brandon Black in 2014 as faster alternative to IPUtils::isInRange() (MediaWiki 1.24, change 131758). It was moved to a library during the MediaWiki 1.26 development cycle (change 221179, change 218384).