Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Iri Laravel Package

sweetrdf/iri

View on GitHub
Deep Wiki
Context7

IRI (Fork)

[!NOTE] This is a fork of the Original IRI class written by Markus Lanthaler. I maintain it in my spare time to keep it alive and usable on the latest PHP versions. Code is more or less maintained but not developed any further. If you wanna participate, feel free to open a pull request!

This is a simple PHP class to ease IRI handling. Currently it just supports parsing of IRIs and relative IRI resolution.

With more than 800 tests, this class is extensively tested.

Installation

The easiest way to use IRI is to integrate it as a dependency in your project's composer.json file:

{
    "require": {
        "sweetrdf/iri": "^1"
    }
}

or run:

composer install sweetrdf/iri

Of course you can also just download an archive from Github.

Compatible with original ml/iri

This library is intented to be a drop-in replacement for the original ml/iri library. However, the IRI class was adapted to be more type safe:

  • Added declare(strict_types=1); to the file
  • Added explicit type information to each class property
  • Added explicit return value types to each class method

:exclamation: IRI does not throw an InvalidArgumentException anymore if an invalid value was given in the constructor! In this case PHP itself will complain.

Credits

Most test cases come either directly from the URI specification, from Graham Klyne's, or Tim Berners-Lee's test suite.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
terminal42/code-quality-tools
codifyo/ts-generator-bundle
andydefer/laravel-cluster
testo/fiber
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity
christhompsontldr/laravel-inky