trowbotham / url-parser Goto Github PK
View Code? Open in Web Editor NEWA WHATWG URL spec compliant URL parser for working with URLs and their query strings.
License: MIT License
A WHATWG URL spec compliant URL parser for working with URLs and their query strings.
License: MIT License
@TRowbotham currently the parser still support PHP5 which will hit EOL at the end of the year. Do you plan on stopping PHP5 support anytime soon ?
Basically, there are 3 questions here:
There are roughly 60 different places in the parser that currently call for a validation error to be reported. As far as I can tell, I have 3 options for reporting the error. I can use error_log()
, trigger_error()
, or I can push each error onto an array that can then be retrieved through a method added to the URL
class. I am, of course, open to other ideas.
This change occurred in https://unicode-org.atlassian.net/browse/ICU-13311. Running input through UConverter::transcode()
is no longer sufficient to transform illegal byte sequences into U+FFFD
replacement characters. Unfortunately, mb_scrub()
doesn't work in this case either.
This is causing a failure in the URLSearchParams constructor test on systems using ICU 60.1+.
First up: I really love this library. After a long search it was exactly what I needed.
Unfortunately, there are hosters our there that offer php 7.1+ with an outdated ICU version, which causes the usage of certain IDN constants to fail. Would you be amendable to implementing a similar fix to this one?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.