Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,199 of 9,199 pages
About the help in other languages
All help pages

The package registries: packages.exponential.earth and packages.se7enx.com

The Exponential package registries are Composer repositories with a web front: packages.exponential.earth (for the apps of Exponential Partners and the store appstore.exponential.earth) and packages.se7enx.com (for 7x…

Download as PDF

Address: https://doc.exponential.earth/learninminutes/exphelp/viewer/ext/exp_package_registry/registry.md

On this page

The package registries: packages.exponential.earth and packages.se7enx.com

The Exponential package registries are Composer repositories with a web front: packages.exponential.earth (for the apps of Exponential Partners and the store appstore.exponential.earth) and packages.se7enx.com (for 7x Partners and appstore.se7enx.com). Both run this extension, so they work the same way. This page is for the people who install from them and for the people who publish packages in them; hosting a registry is described in hosting.md.

German: ger-de/registry.md.

Installing from a registry

Each registry is a Composer v2 repository (packages.json and p2/<vendor>/<name>.json). Add it to a project and require packages as from Packagist:

composer config repositories.exponential composer https://packages.exponential.earth
composer require vendor/package

For packages.se7enx.com use that host instead. A site's App Store reads a registry as a source of the type composer, so its apps show in the App Store tab too.

The web front of a registry has a search (registry/list), a page per package (registry/package/<vendor>/<name>) with its versions, readme, maintainers, downloads and the checks of each release, and the statistics (registry/stats). The same data is available as Packagist's API (packages/list.json, search.json, packages/<vendor>/<name>.json), as a REST API under /rest/ and as GraphQL at /graphql (api.md).

Signed dists

The registry builds the zip file (the "dist") of every release itself, from the git repository, and keeps it outside the web root. Every version in the Composer metadata carries:

  • dist.shasum: the SHA-1 of the zip, which Composer checks;
  • dist-signature: the SHA-256 of the zip and an Ed25519 signature, {"sha256": ..., "signature": "ed25519:<key id>:<base64>", "public-key": <url>}.

The signature is over the text exp-dist-v1:<sha256>:<package>:<version>:<reference>. The registry's public key is published at /keys/registry.pub (base64, with an X-Key-Id header):

curl -s https://packages.exponential.earth/keys/registry.pub

The .sha256 and .sig files lie next to each zip under /dists/. To check a zip by hand, on an installation with this extension:

./console ext:exp_package_registry:verify <zip> <signature> <vendor/name> <version> <reference> [--key=<base64>]

Private packages and license keys

A private package (a paid app, for example) is served only with a license key whose scope covers it: its metadata, its versions and its zips. Without a key the registry answers 401; with a key that does not cover the package, 403. Give Composer the key as http-basic, with the user name token and the key as the password:

composer config http-basic.packages.exponential.earth token <key>
composer require vendor/private-package

A bearer token works as well: composer config bearer.packages.exponential.earth <key>. To keep the key out of auth.json, give it for one run in COMPOSER_AUTH; see the licensing page of exp_app_market (doc/licensing.md). Keys for purchases are made by the store when an app is bought; the registry stores only their SHA-256 hash. A revoked or expired key is refused at once. Private packages have no source in the metadata, and their p2 files are sent with Cache-Control: private.

Submitting a package

  1. Sign in on the registry with an account that has the policy registry/submit, and open Submit a package (registry/submit).
  2. Enter the URL of the package's git repository (GitHub, GitLab or any git host, https). Its default branch needs a composer.json with a name.
  3. Choose the visibility: Public, or Private: served only with a license key, with the zips built from the private repository. A private repository needs a credential, the name of a [Credential_<name>] block of the registry's settings whose secret is kept in the registry's secret store; ask the registry team for one.
  4. Press Submit. A queued job reads the repository: every tag that is a version becomes a release, and every branch a development version. The registry reads the repository again every few hours, so a new tag shows up by itself.

The vendor names se7enxweb and exponential are reserved for the registry team. A package's maintainers see it on Your packages (registry/seller), with its license keys, downloads and checks; selling it is described in the seller guide of exp_app_market (doc/seller-guide.md).

The checks that block a release

After a release's zip is built, the registry runs its checks on it. The results are shown on the package page, in the APIs and in the registry's administration.

CheckFails whenBlocks
php-lintphp -l fails on one of the supported PHP versionsyes
composer-auditcomposer audit finds a known vulnerability in the release's dependenciesyes
encodedionCube or SourceGuardian, eval of decoded strings, long encoded blobsyes
licenseno license in composer.json, no LICENSE or COPYING file, or (public packages) a license that is not GPL-compatibleyes
docsno README or no changelogyes
design-rulesthe kernel's admin styling rules on the templates: <style>, style="", inline handlers in admin designsyes
api-rulesthe documented API rules of Exponentialyes
codestylethe kernel's phpcs rules, when the tools are installedno
phpstanthe kernel's phpstan, when it is switched onyes, when it runs

A blocking failure marks the version blocked: it stays on its page with the results, and it is left out of the Composer metadata, so nobody installs it. Fix the problem and tag a new version; a registry administrator can also run the checks again, or release a blocked version with a recorded reason.

See also

  • api.md: the Composer, Packagist, REST and GraphQL endpoints; license keys; signatures
  • ci.md: the checks of a release and the runners
  • commands.md: the command line
  • hosting.md: running a registry

Something wrong on this page? Report an error

Documentation license

This page is part of the documentation of the extension exp_package_registry and is distributed under the license of that extension.