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

The requirements checklist

Every requirement a site package has to meet, in one checklist, each marked as enforced by the code or as a convention of the shipped 7x packages, with the file that checks it and what happens without it.

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/help/site-packages/requirements/the-requirements-checklist.md

On this page

The requirements checklist

This page is for developers who prepare a site package for publishing and for reviewers who check one. It lists every requirement in one place. Enforced means the code refuses, skips or stops without it; Convention means the 16 packages in the 7x source repositories all do it and the tools that show a package rely on it. The other pages of this part explain each item in detail.

Contents

  1. The archive
  2. The package definition
  3. A site package in the setup wizard
  4. The index entry
  5. Documents and descriptions
  6. Before publishing
  7. The source repository
  8. Related pages

The archive

RequirementLabelChecked in
[ ]A gzip compressed tar archiveEnforcedeZPackageUploadInspector::inspect() (gzip signature); every import opens it as compress.zlib://
[ ]File name ends in .ezpkg, .tar.gz or .tgz ([UploadSettings] AllowedSuffixes[])Enforced on package/uploadeZPackageUploadInspector::hasAllowedSuffix()
[ ]File name is <name>.ezpkg, the name of <name>ConventionEvery url of the 6.0.15 index.xml ends in <name>.ezpkg
[ ]package.xml (or package.json) is a plain file at the top, not in a folderEnforcedeZPackage::importUnaudited()
[ ]Every entry is a plain file or directory: a link to a file of the package is imported as a copy, other links, devices and fifos are passed over with a noticeConvention: the package still importsexpPackageArchive::index() (link_outside, link_directory, link_missing, special_file)
[ ]No entry path with .., a leading /, a drive letter, a back slash or a control characterEnforcedeZPackageUploadInspector::safeEntryPath() (unsafe_path)
[ ]At most 256 MiB packed, 2 GiB unpacked, 50000 entries (defaults of [UploadSettings])Enforced (size packed: package/upload only)eZPackageUploadInspector::limits()
[ ]No .git, editor backups or node_modulesConventionThe EXCLUDES list of packages/build.sh

The package definition

RequirementLabelChecked in
[ ]Well formed XML, root element <package>, no DOCTYPEEnforced on package/uploadeZPackageUploadInspector::definition()
[ ]A non-empty <name>EnforcedeZPackage::parseDOMTree()
[ ]<name> only a-z, A-Z, 0-9, _ and -, not starting with - (lower case is the convention)Enforced (STATUS_INVALID_NAME)eZPackage::isValidName()
[ ]No package of the same name already importedEnforced (STATUS_ALREADY_EXISTS)eZPackage::importUnaudited()
[ ]<ezpublish> and <packaging> elements presentEnforced on package/upload (definition_incomplete)eZPackageUploadInspector::definition()
[ ]<version><number>, <version><release> and <type value> are empty or up to 64 of 0-9 A-Z a-z . _ + -Enforced (the definition is not read)eZPackage::isValidDefinitionToken()
[ ]<vendor> gives a usable directory name (7x for the shipped packages)Enforced (invalid_vendor)eZPackageRequestGuard::isSafeName()
[ ]<summary>, <description>, <state> presentConventionShown by the package page and the setup wizard
[ ]<maintainers> with a role from [MaintainerSettings] RoleList[]Convention15 of the 16 shipped packages name a lead (sevenx_extension has no <maintainers>)

Details: Required package.xml fields, Version numbers.

A site package in the setup wizard

RequirementLabelChecked in
[ ]<type value="site" />Enforced (otherwise not listed)eZStepSiteTypes::fetchAvailableSitePackages() filters on type site
[ ]install_type="import" on <package>ConventionAll 5 shipped site packages; a site package is imported, not installed
[ ]Every required package is in the same index.xml with a urlEnforced ("the URL is unknown")eZStepSiteTypes::downloadDependantPackages()
[ ]Every required package can be fetched and installedEnforced (EZSW-050, EZSW-051)eZStepCreateSites
[ ]Each <require> has type="ezpackage", name and min-versionEnforced: the create sites step installs only type="ezpackage" requirements; the kickstart path reads min-version without a fallbackezstep_create_sites.php, ezstep_site_types.php
[ ]Every file named by <settings-file filename> exists in settings/Convention (a missing one is skipped silently)ezstep_create_sites.php (file_exists() before include_once)

Details: Declaring dependencies.

The index entry

RequirementLabel
[ ]name, type and url attributes on the <package> element of index.xmlEnforced: name is the key, type="site" lists it, url is downloaded
[ ]summary, description, version attributesConvention: shown on the site type step as "summary (ver. version)"
[ ]thumbnail_url pointing at thumbnails/<name>.pngConvention: shown before the package is imported

Details: The index.xml format, Thumbnails and screenshots.

Documents and descriptions

RequirementLabel
[ ]<licence> with a license identifierConvention (only the creation wizards insist on it)
[ ]documents/LICENCE, named in <documents>Convention: all 16 shipped packages
[ ]One <changelog><entry> per release, with timestamp, person, release and one <change> per changeConvention
[ ]A thumbnail in the file collection defaultConvention: shown by the wizard and the package page

Details: License and documents, Changelog entries.

Before publishing

  • To do: xmllint --noout package.xml prints nothing.
  • To do: php ezpm.php validate <archive> ends in PASS.
  • To do: The archive uploads on package/upload of a test installation.
  • To do: A fresh install with the package succeeds in a sandbox.

Details: Validating a package before publishing, Testing in a sandbox.

The source repository

  • To do: A README that says what the package installs and how to build it (Convention).
  • To do: A LICENSE file at the root (Convention).
  • To do: Commit subjects with Added:, Updated:, Removed:, Renamed: prefixes (Convention).

Details: README and repository docs.

Become an Exponential Partner

Partners share their information, provide funding, contribute back and develop the products with us, and that is how Exponential grows. A partner website and dashboard are planned for mid-2027: please become a partner today to speed up our growth rate and land new features faster.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x