Overview

Namespaces

  • Composer
    • Autoload
  • Guzzle
    • Common
      • Exception
    • Http
      • Curl
      • Exception
      • Message
        • Header
      • QueryAggregator
    • Parser
      • Cookie
      • Message
      • UriTemplate
      • Url
    • Plugin
      • Mock
    • Stream
  • Mockery
    • Adapter
      • Phpunit
    • CountValidator
    • Exception
    • Generator
      • StringManipulation
        • Pass
    • Loader
    • Matcher
  • None
  • Omnipay
    • Common
      • Exception
      • Message
    • Dummy
      • Message
    • Fatzebra
      • Message
  • PHP
  • Symfony
    • Component
      • EventDispatcher
        • Debug
        • DependencyInjection
        • Tests
          • Debug
          • DependencyInjection
      • HttpFoundation
        • File
          • Exception
          • MimeType
        • Session
          • Attribute
          • Flash
          • Storage
            • Handler
            • Proxy
        • Tests
          • File
            • MimeType
          • Session
            • Attribute
            • Flash
            • Storage
              • Handler
              • Proxy
      • Yaml
        • Exception
        • Tests

Classes

  • AcceptHeader
  • AcceptHeaderItem
  • ApacheRequest
  • BinaryFileResponse
  • Cookie
  • ExpressionRequestMatcher
  • FileBag
  • HeaderBag
  • IpUtils
  • JsonResponse
  • ParameterBag
  • RedirectResponse
  • Request
  • RequestMatcher
  • RequestStack
  • Response
  • ResponseHeaderBag
  • ServerBag
  • StreamedResponse

Interfaces

  • RequestMatcherInterface
  • Overview
  • Namespace
  • Class
  • Tree

Class IpUtils

Http utility functions.

Namespace: Symfony\Component\HttpFoundation
Author: Fabien Potencier fabien@symfony.com
Located at IpUtils.php
Methods summary
public static boolean
# checkIp( string $requestIp, string|array $ips )

Checks if an IPv4 or IPv6 address is contained in the list of given IPs or subnets.

Checks if an IPv4 or IPv6 address is contained in the list of given IPs or subnets.

Parameters

$requestIp
IP to check
$ips
List of IPs or subnets (can be a string if only a single one)

Returns

boolean
Whether the IP is valid
public static boolean
# checkIp4( string $requestIp, string $ip )

Compares two IPv4 addresses. In case a subnet is given, it checks if it contains the request IP.

Compares two IPv4 addresses. In case a subnet is given, it checks if it contains the request IP.

Parameters

$requestIp
IPv4 address to check
$ip
IPv4 address or subnet in CIDR notation

Returns

boolean
Whether the IP is valid
public static boolean
# checkIp6( string $requestIp, string $ip )

Compares two IPv6 addresses. In case a subnet is given, it checks if it contains the request IP.

Compares two IPv6 addresses. In case a subnet is given, it checks if it contains the request IP.

Parameters

$requestIp
IPv6 address to check
$ip
IPv6 address or subnet in CIDR notation

Returns

boolean
Whether the IP is valid

Throws

RuntimeException
When IPV6 support is not enabled

Author

David Soria Parra

See

https://github.com/dsp/v6tools
Omnipay Fat Zebra / Paystream Gateway Module API Documentation API documentation generated by ApiGen