Skip to content

Commit

Permalink
Add PHP PECL type
Browse files Browse the repository at this point in the history
  • Loading branch information
LaurentGoderre committed Apr 3, 2024
1 parent 3465898 commit f064274
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 1 deletion.
12 changes: 11 additions & 1 deletion PURL-TYPES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]

pub
----
``pub`` for Dart and Flutter packages:
Expand Down Expand Up @@ -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:
Expand Down
24 changes: 24 additions & 0 deletions test-suite-data.json
Original file line number Diff line number Diff line change
Expand Up @@ -550,5 +550,29 @@
"qualifiers": null,
"subpath": null,
"is_invalid": false
},
{
"description": "valid pecl purl",
"purl": "pkg:pecl/[email protected]",
"canonical_purl": "pkg:pecl/[email protected]",
"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
}
]

0 comments on commit f064274

Please sign in to comment.