diff --git a/PURL-TYPES.rst b/PURL-TYPES.rst index 2bf69af..b245c4d 100644 --- a/PURL-TYPES.rst +++ b/PURL-TYPES.rst @@ -471,6 +471,17 @@ including container images built by Docker and others: pkg:oci/static@sha256%3A244fd47e07d10?repository_url=gcr.io/distroless/static&tag=latest pkg:oci/hello-wasm@sha256%3A244fd47e07d10?tag=v1 +pecl +---- +``pecl`` for PECL PHP packages: + +- The default repository is ``https://pecl.php.net/``. +- The ``namespace`` is empty. +- The ``name`` is not case sensitive +- Examples: + + pkg:pecl/APCu@5.1.23 + pub ---- ``pub`` for Dart and Flutter packages: @@ -589,7 +600,6 @@ Other candidate types to define: - ``osgi`` for OSGi bundle packages: - ``p2`` for Eclipse p2 packages: - ``pear`` for Pear PHP packages: -- ``pecl`` for PECL PHP packages: - ``perl6`` for Perl 6 module packages: - ``platformio`` for PlatformIO packages: - ``ebuild`` for Gentoo Linux portage packages: diff --git a/test-suite-data.json b/test-suite-data.json index a819fc8..70a3996 100644 --- a/test-suite-data.json +++ b/test-suite-data.json @@ -550,5 +550,29 @@ "qualifiers": null, "subpath": null, "is_invalid": false + }, + { + "description": "valid pecl purl", + "purl": "pkg:pecl/APCu@5.1.23", + "canonical_purl": "pkg:pecl/APCu@5.1.23", + "type": "pecl", + "namespace": null, + "name": "APCu", + "version": "5.1.23", + "qualifiers": null, + "subpath": null, + "is_invalid": false + }, + { + "description": "valid pecl purl without version", + "purl": "pkg:pecl/APCu", + "canonical_purl": "pkg:pecl/APCu", + "type": "pecl", + "namespace": null, + "name": "APCu", + "version": null, + "qualifiers": null, + "subpath": null, + "is_invalid": false } ]