You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can quickly parse a url from the command line with the provided `parse`
163
+
vendor binary. From the root of your project, simply call:
164
+
165
+
```bash
166
+
$ ./vendor/bin/parse <url>
167
+
```
168
+
169
+
If you pass a url to `parse`, that url will be parsed and the output printed
170
+
to screen.
171
+
172
+
If you do not pass a url, `http://user:[email protected]:8080/path/to/page.html?query=string#fragment` will be parsed and the output printed to screen.
173
+
174
+
Example:
175
+
176
+
```bash
177
+
$ ./vendor/bin/parse http://www.waxaudio.com.au/
178
+
179
+
Array
180
+
(
181
+
[scheme] => http
182
+
[user] =>
183
+
[pass] =>
184
+
[host] => www.waxaudio.com.au
185
+
[subdomain] => www
186
+
[registerableDomain] => waxaudio.com.au
187
+
[publicSuffix] => com.au
188
+
[port] =>
189
+
[path] => /
190
+
[query] =>
191
+
[fragment] =>
192
+
)
193
+
```
194
+
160
195
### Example Script ###
161
196
162
197
For more information on using the PHP Domain Parser, please see the provided
0 commit comments