forked from FakerPHP/Faker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
myanmarFaker-example.php
122 lines (88 loc) · 3.24 KB
/
myanmarFaker-example.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
<?php
require_once 'vendor/autoload.php';
// use the factory to create a myanmarFaker\Generator instance
$faker = myanmarFaker\Factory::create();
?><!DOCTYPE html>
<html lang="en">
<head>
<title>myanmarFaker example</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link id="theme-stylesheet" rel="stylesheet" href="https://utteranc.es/stylesheets/themes/github-light/index.css">
<link href="https://unpkg.com/@primer/css@^16.0.0/dist/primer.css" rel="stylesheet" />
</head>
<body>
<main class="timeline">
<article class="timeline-comment">
<div class="comment">
<article class="markdown-body">
<h1>myanmarFaker example</h1>
</article>
<header class="comment-header">
<span class="comment-meta">
<h2>Image</h2>
</span>
</header>
<article class="markdown-body">
<p>Code</p>
<pre>for ($i = 0; $i < 5; $i++) {
$faker->imageUrl(640, 480, 'animals', true) . "\n";
}</pre>
<p>Output</p>
<pre><?php
for ($i = 0; $i < 5; $i++) {
echo $faker->imageUrl(250, 250, null, true) . "\n";
}
?></pre>
<p>Image Preview</p>
<div class="border d-flex flex-nowrap">
<?php
for ($i = 0; $i < 5; $i++) {
?>
<div class="p-0 px-0 border color-bg-subtle">
<img src="<?=$faker->imageUrl(640, 480, null, true);?>" alt="Some" />
</div>
<?php
}
?>
</div>
</article>
<header class="comment-header">
<span class="comment-meta">
<h2>Name</h2>
</span>
</header>
<article class="markdown-body">
<p>Code</p>
<pre>for ($i = 0; $i < 5; $i++) {
echo $faker->name() . "\n";
}</pre>
<p>Output</p>
<pre><?php
for ($i = 0; $i < 5; $i++) {
echo $faker->name() . "\n";
}
?></pre>
</article>
<header class="comment-header">
<span class="comment-meta">
<h2>Email</h2>
</span>
</header>
<article class="markdown-body">
<p>Code</p>
<pre>for ($i = 0; $i < 5; $i++) {
echo $faker->email() . "\n";
}</pre>
<p>Output</p>
<pre><?php
for ($i = 0; $i < 5; $i++) {
echo $faker->email() . "\n";
}
?></pre>
</article>
</div>
</article>
</main>
</body>
</html>