Coder Social home page Coder Social logo

trowbotham / url-parser Goto Github PK

View Code? Open in Web Editor NEW
16.0 3.0 0.0 884 KB

A WHATWG URL spec compliant URL parser for working with URLs and their query strings.

License: MIT License

PHP 100.00%
url-parser url-parsing url php querystring query-string uri

url-parser's People

Contributors

nyamsprod avatar trowbotham avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

url-parser's Issues

Remove support for PHP5

@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 ?

Do you want to be notified when the parser encounters a validation error?

Basically, there are 3 questions here:

  1. Do you want to be notified when the parser encounters a validation error?
  2. Should there be a way to enable and disable validation error reporting?
  3. What would be the best way to convey the error information?

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.

Outdated ICU

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.