NAME

Faker::Provider::Internet - Faker Standard Internet Provider

VERSION

version 0.11

SYNOPSIS

use Faker;
use Faker::Provider::Internet;

my $faker = Faker->new;
my $internet = Faker::Provider::Internet->new(factory => $faker);

say $internet->domain_name;

DESCRIPTION

Faker::Provider::Internet is a Faker provider which provides fake Internet data. Note: This is an early release available for testing and feedback and as such is subject to change.

METHODS

domain_name

$internet->domain_name;

# douglas-schaefer-and-heaney.biz
# pouros-ltd.info
# o-reilly-mertz-and-pagac.net

The domain_name method generates a random ficticious domain name.

domain_word

$internet->domain_word;

# fahey-kuphal
# buckridge-o-hara-and-olson
# renner-gottlieb-and-mills

The domain_word method generates a random ficticious domain word.

email_address

$internet->email_address;

# xpaucek@yahoo.com
# ifarrell@hotmail.com
# reichel.kristian@wolff-hand.biz

The email_address method generates a random ficticious email address.

email_domain

$internet->email_domain;

# gmail.com
# hotmail.com
# yahoo.com

The email_domain method generates a random ficticious email domain.

ip_address

$internet->ip_address;

# 127.139.44.27
# 151.238.203.220
# 217.2.93.202

The ip_address method generates a random ficticious ip address.

ip_address_v4

$internet->ip_address_v4;

# 164.211.250.223
# 17.204.157.48
# 44.168.220.190

The ip_address_v4 method generates a random ficticious ip address v4.

ip_address_v6

$internet->ip_address_v6;

# a3db:be38:1d95:c7d4:390f:c9d7:1169:0d37
# de69:0f5f:7d53:a317:e406:d908:3ecd:250a
# d8ca:978f:6aab:fd01:91ab:5046:bc9b:1f6e

The ip_address_v6 method generates a random ficticious ip address v6.

root_domain

$internet->root_domain;

# info
# info
# org

The root_domain method generates a random ficticious root domain.

url

$internet->url;

# http://raynor-volkman-and-upton.org/
# http://www.crona-ledner-and-parisian.net/
# https://stracke-pty.org/

The url method generates a random ficticious url.

AUTHOR

Al Newkirk <anewkirk@ana.io>

COPYRIGHT AND LICENSE

This software is copyright (c) 2014 by Al Newkirk.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.