Download the PHP package miken32/network-rules without Composer

On this page you can find all versions of the php package miken32/network-rules. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package network-rules

A Collection of Rules
for the Reliable Validation

of
Internet Protocol Addreſſes,
Networks, and Subnets
which the author hopes will be found uſeful to
Laravel Programmers &c.

Installation

Available Validation Rules

Here is a list of the available rules and their usage.

In Network
IP Or Net
Netv4
Netv6
Private IP
Private IPv4
Private IPv6
Private Net
Routable IP
Routable IPv4
Routable IPv6
Routable Net
Routable Netv4
Routable Netv6

in_network:cidr,...

The field under validation must be an IP address within one of the given networks. The networks must be given in CIDR notation, and may be either IPv4 or IPv6 networks.

ip_or_net

The field under validation must be an IP address or network in CIDR notation. The address or network may be either IPv4 or IPv6.

netv4:low,high

The field under validation must be an IPv4 network in CIDR notation. If provided, the number of bits in the mask must be between low and high.

netv6:low,high

The field under validation must be an IPv6 network in CIDR notation. If provided, the number of bits in the mask must be between low and high.

private_ip

The field under validation must be a private IPv4 or IPv6 address. Private addresses are defined as being within one of the following networks:

The following networks are considered reserved, not private. They are not considered valid by this rule:

private_ipv4

The field under validation must be a private IPv4 addresses. The networks considered private are described in the private_ip rule.

private_ipv6

The field under validation must be a private IPv6 addresses. The networks considered private are described in the private_ip rule.

private_net

The field under validation must be a private IP network in CIDR notation. The networks considered private are described in the private_ip rule.

routable_ip

The field under validation must be a globally routable IPv4 or IPv6 address. This excludes all private and reserved ranges, as detailed the the private_ip rule.

routable_ipv4

The field under validation must be a globally routable IPv4 address. This excludes all private and reserved ranges, as detailed the the private_ip rule.

routable_ipv6

The field under validation must be a globally routable IPv6 address. This excludes all private and reserved ranges, as detailed the the private_ip rule.

routable_net:low,high

The field under validation must be a globally routable IP network in CIDR notation. The network must not overlap any private or reserved ranges, as detailed the the private_ip rule. If provided, the number of bits in the mask must be between low and high.

routable_netv4:low,high

The field under validation must be a globally routable IPv4 network in CIDR notation. The network must not overlap any private or reserved ranges, as detailed the the private_ip rule. If provided, the number of bits in the mask must be between low and high.

routable_netv6:low,high

The field under validation must be a globally routable IPv6 network in CIDR notation. The network must not overlap any private or reserved ranges, as detailed the the private_ip rule. If provided, the number of bits in the mask must be between low and high.

Usage

The included validation rules can be used either as traditional string-based validation rules or as instantiated classes. The following code blocks perform identical validations.


All versions of network-rules with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
illuminate/support Version ^10.0|^11.0
illuminate/validation Version ^10.0|^11.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package miken32/network-rules contains the following files

Loading the files please wait ....