Download the PHP package gumslone/laravel-package-url without Composer

On this page you can find all versions of the php package gumslone/laravel-package-url. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-package-url

laravel-package-url

tests Donate

Package URL (purl) for Laravel — parse, build, normalize and validate purls, plus registry / repository / download URL resolution, vulnerability-database ecosystem mapping, and reverse-parsing from VCS URLs.

The core is a faithful, dependency-light implementation of the purl spec that passes the entire official package-url/purl-spec conformance suite (base spec + all 40+ type definitions) — the same suite packageurl-php and packageurl-python test against — and then goes further with the helpers you actually need in an app.

Installation

The service provider and Purl facade are auto-discovered.

Core: parse, build, normalize, validate

Normalization follows the spec: the type is lowercased, qualifier keys are lowercased/sorted with empty values dropped, subpaths are cleaned, and type-specific rules apply (e.g. pypi lowercases the name and turns _ into -; github/bitbucket/golang lowercase namespace and name). Invalid purls throw PackageUrlException — including per-type rules such as swift requiring a namespace, vcpkg/otp forbidding one, and chrome-extension id/version formats.

Extended: the Purl facade

Checks

Non-throwing booleans to guard a conversion before you attempt it:

Registry, repository & download URLs

Coverage matches (and extends) packageurl-python's purl2url:

A download_url qualifier always takes precedence. Distro artifact URLs (deb/apk/alpm/conda) read the relevant qualifiers (arch, repo, channel, …).

Vulnerability-database ecosystem mapping

Reverse-parse from a URL

From a VCS repository URL:

From a download / registry URL — the inverse of downloadUrl():

Recognition covers (and extends) packageurl-python's url2purl: npm (incl. yarnpkg mirrors), PyPI (CDN files, /packages/source, project/JSON API), RubyGems, crates.io, NuGet, Maven, Go (proxy + pkg.go.dev), Hex, Composer/Packagist, pub.dev, CocoaPods, Hackage, LuaRocks, CRAN, SourceForge and Google Code archives (→ pkg:generic), and the full GitHub / GitLab / Bitbucket surface — web, REST API (api.github.com/repos), codeload.github.com, archive/release/download, and raw/blob/tree/ commit refs. Returns null for anything unrecognised.

Pairs well with

Testing

The suite runs the bundled official conformance data under tests/data.

Credits

Support

If this package saves you time, consider supporting its development:

Buy Me A Coffee

Donate

License

MIT. See LICENSE. Bundled test fixtures are from package-url/purl-spec, also MIT.


All versions of laravel-package-url with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
illuminate/support Version ^10.0|^11.0|^12.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package gumslone/laravel-package-url contains the following files

Loading the files please wait ...