FakerPHP / Core

Faker Core
MIT License
3 stars 2 forks source link

Url extension http va https #24

Open pimjansen opened 1 year ago

pimjansen commented 1 year ago

At this point only http urls are generated. We should check how we can handle https etc as well

pimjansen commented 1 year ago

@bram-pkg will we even include those random urls? This due the fact that we don't own a TLD which can cause it generating real URL's ofcourse. What is your view?

bram-pkg commented 1 year ago

Do you think it would be too limited to generate only urls for: https://www.rfc-editor.org/rfc/rfc2606.html#section-3

The Dutch also have https://example.nl which is maintained by the company that runs the .nl top level domain nameservers.

pimjansen commented 1 year ago

Do you think it would be too limited to generate only urls for: https://www.rfc-editor.org/rfc/rfc2606.html#section-3

The Dutch also have https://example.nl which is maintained by the company that runs the .nl top level domain nameservers.

Nope so nice find. Guess it is ok as long as we document it right. I will add an url extension for this

websitevirtuoso commented 9 months ago

any news?

I had to write my custom function to use https.

laravel has option to check if https link

        'website_url' => 'nullable|string|url:https',