Contribute your site package
7x and the Exponential Foundation strongly encourage every developer, designer and partner who has built a site
package to submit it by pull request to the repository that holds the package server's contents. An accepted
package becomes part of Exponential's default distribution system: it is listed in the package index that every
installation reads, so the setup wizard, the kickstarter, exp:install and ezupdate on every Exponential site can
offer it, with no extra settings on anyone's side.
This page is for whoever has a working site package (or is about to make one) and wants it to reach every installation. It answers: which repository to fork, where your files go, what must be in the package, which version number to give it, which license, how to test it first, what to write in the pull request and how review works.
Contents
- Why contribute
- The repository to fork
- Folder layout and file names
- The index entry
- The package checklist
- Version numbers
- License
- Test the install in a sandbox first
- Open the pull request
- How review works
- Related pages
Why contribute
- Reach. A package in the default index is one click away in every new installation: the setup wizard's
site package step lists every
type="site"package of the index (eZStepSiteTypes::retrieveRemotePackagesList()inkernel/setup/steps/ezstep_site_types.php), and the kickstarter andexp:install --package=<name>install it by name. - Shared maintenance. The packages on the server are rebuilt for every Exponential release (one folder per
release below
exponential/6.0/: thirteen folders today, from6.0.0to6.0.15). A package that is part of that set travels with the releases instead of aging on one person's disk. - Community growth. Every site package shows what Exponential can do. The Exponential Foundation and 7x want many of them: business sites, intranets, portals, shops, community sites, sites in many languages.
You keep your own source repository and your own copyright; the pull request adds the built package and its index entry to the shared server.
Copyright assignment (CLA). The Contributor Licensing Agreement that 7x and the
Exponential Foundation require concerns code contributions to the core kernel, se7enxweb/exponential. A site
package that you build, keep and license yourself is not a kernel contribution and is not affected. If you also send
a change to the kernel itself, that change is merged only after you have signed the CLA, and by signing and
submitting it you give up control over it: The Exponential Foundation and 7x may use, change, relicense and distribute it in any
way, also under other licenses and in commercial products, without asking or paying you, and you cannot withdraw it or set conditions on it. See Copyright assignment (CLA).
The repository to fork
| What | Where |
|---|---|
| The package server's contents (fork this one) | github.com/se7enxweb/exponential.packages.exponential.earth |
| Its contributing guide (the short form of this page) | CONTRIBUTING.md |
| What it publishes | exponential.packages.exponential.earth (GitHub Pages, default branch master) |
| The index the 6.0.15 setup wizard reads | exponential/6.0/6.0.15/index.xml |
Every push to master publishes the whole tree through the workflow .github/workflows/workflow.yml, which also
generates the directory listing you see in a browser (The package server on GitHub).
gh repo fork se7enxweb/exponential.packages.exponential.earth --clone
cd exponential.packages.exponential.earth
git checkout -b add-<your_package>The repository is large (it holds every built .ezpkg of every release). A partial clone is enough to work in:
git clone --filter=blob:none <your fork's URL>.
Keep the source of your package (the unpacked folders) in a repository of your own, the way the 7x packages live in se7enxweb/sevenx-ezpackage and the CJW packages in se7enxweb/cjw_multisite-ezpackage (The source repositories). Reviewers will want to see it.
Folder layout and file names
The server keeps one folder per Exponential release. Your files go into the folder of each release you support, next to the existing packages:
exponential/6.0/6.0.15/
├── index.xml the index: add one <package> line per package
├── <your_package>.ezpkg the site package (type site)
├── <your_package>_democontent.ezpkg the packages it requires, if any
└── thumbnails/
└── <your_package>.png the picture the setup wizard shows| Rule | Why |
|---|---|
File name = <package name>.ezpkg, the name exactly as in <name> of package.xml | The index points at the file, and the importer refuses a name that is not letters, digits, _ and - (Required package.xml fields) |
| A name of your own, never one that exists | An import refuses a package whose name is already in any repository of the site (Packages guide) |
Thumbnail in thumbnails/<package name>.png | The same pattern every existing site package uses (thumbnail_url in index.xml) |
| Packages your site package requires are on the server too | The wizard downloads every required package from the same index (Dependencies and the install order) |
| Built archives only, no source folders | The server serves files; the source belongs in your own repository |
Build each .ezpkg the way the shipped ones are built: a gzip compressed tar of the package folder's contents
(package.xml at the top), without .git, editor files and node_modules
(Rebuilding with build.sh).
The index entry
Add your packages to the release's index.xml, in the same form as the existing entries. Required packages get a
short entry in the dependency list at the top; the site package gets a full one:
<package name="<your_package>_democontent" type="contentobject"
url="https://exponential.packages.exponential.earth/exponential/6.0/6.0.15/<your_package>_democontent.ezpkg"/>
<package name="<your_package>" version="1.0-1" type="site"
summary="<one line, shown as the package's title>"
description="<two or three sentences: what the site is and what it contains>"
url="https://exponential.packages.exponential.earth/exponential/6.0/6.0.15/<your_package>.ezpkg"
thumbnail_url="https://exponential.packages.exponential.earth/exponential/6.0/6.0.15/thumbnails/<your_package>.png"/>The wizard reads every attribute of a <package> element as it is, so the URLs must be absolute and correct; it
lists only type="site" entries as choices. Check the file with xmllint --noout index.xml before you commit
(The index.xml format).
The package checklist
The full list, with the reason for each item, is The requirements checklist. In short, before you open the pull request:
- To do:
package.xmlis well formed, has<package>as its root and no document type. - To do:
<name>is letters, digits,_and-(lower case letters, digits and_by convention), and matches the file name. - To do:
<summary>and<description>say what the site is, in plain words. - To do:
<vendor>names you or your organization. - To do:
<type value="site" />for the site package; the right type for each package it requires. - To do:
<version>(<number>,<release>) agrees with theversionattribute of the index entry (theversionattribute of the root<package>element is the format version; leave it as the tools write it). - To do:
<ezpublish><version>names the Exponential release you tested with (the element keeps its historical name). - To do:
<licence>holds a license identifier frompackage.ini [LicenseSettings], anddocuments/LICENCEholds the license text. - To do:
<changelog>has an entry for this release. - To do:
<maintainers>lists a maintainer and a role from[MaintainerSettings] RoleList. - To do:
<dependencies><requires>lists every package it needs, and each of them is in the pull request or already on the server. - To do:
files/default/thumbnail/thumbnail.pngand the index thumbnail exist. - To do: No secrets: no passwords, keys, tokens or real e-mail addresses in install scripts, settings or content.
- To do: The package passes Validate on its page in Setup > Packages (Validating a package before publishing).
Version numbers
- The package's version is
<version><number>and<release>inpackage.xml; the index repeats it in theversionattribute, written aseZPackage::getVersion()writes it,<number>-<release>:<number>1.0</number>and<release>1</release>are listed asversion="1.0-1", and the 7x site packages (6.0,15-stable) asversion="6.0-15-stable". Keep the two the same: the setup wizard compares the index version with a copy already imported on a site, so a higher index version makes it download the package again on every run and a lower one hides your new release (Version numbers). - A changed package gets a new version. A folder on the server is a release of Exponential; within it, raise your
package's version when you replace its file, and say what changed in
<changelog>and in the pull request. - If your package is also tagged in your own repository, the project's rule for tags applies there too: a pushed tag is never moved (A pushed tag is permanent).
License
- Code (install scripts, templates, settings, extensions inside the package): a license compatible with the GNU
GPL, because Exponential itself is GPL 2.0 or later. The package wizard's default is
GPL-2.0-or-later(package.ini [LicenseSettings] DefaultLicense). See GPL for theme code. - Documentation that ships with the package (README, guides): the GNU Free Documentation License 1.3, as for Exponential's own documentation (Free documentation, GFDL for theme documentation).
- Images and demo content: only material you have the right to share, with its license stated. Creative Commons licenses are in the wizard's list (Creative Commons for images).
Test the install in a sandbox first
Never test a site package on a site that holds real content: installing a site package builds a new site.
- Make a throwaway installation (a fresh clone with its own SQLite database is the quickest, Testing in a sandbox).
- Point it at your packages: either import them into its local repository, or set
[RepositorySettings] RemotePackagesIndexURLin itssettings/override/package.ini.append.phpto a folder that serves your copy of the release folder (Pointing a site at your package server). - Install with the setup wizard and once more with
./console exp:install --apply --package=<your_package>(or the kickstarter), so both front ends are proven. - Check the result: the site, the administration, the editor siteaccess, the roles, a search, an edit and a
publish. Read
var/log/error.logof the sandbox. - Remove the sandbox when you are done.
Open the pull request
Push your branch to your fork and open the pull request against se7enxweb/exponential.packages.exponential.earth,
branch master:
git add exponential/6.0/6.0.15/<your_package>*.ezpkg exponential/6.0/6.0.15/thumbnails/<your_package>.png exponential/6.0/6.0.15/index.xml
git commit -m "Added: <your_package> site package for 6.0.15"
git push origin add-<your_package>
gh pr create -R se7enxweb/exponential.packages.exponential.earth --base masterWrite in the pull request:
| Section | Content |
|---|---|
| What it is | One paragraph: the kind of site, its siteaccesses and languages, what an editor gets |
| What it contains | The packages, with their types, and the extensions and designs it needs |
| Source | The link to the repository with the unpacked source |
| Tested | The Exponential version, the database(s) and the front ends you installed with (setup wizard, exp:install, kickstarter) |
| License | The license of the code, of the documentation and of the images |
| Maintainer | Who answers issues about the package, and where |
Commit messages follow the project's prefixes (Added:, Updated:, Removed:, Renamed:), as the existing history
of the repository does.
How review works
Since 2026-10-19 the repository has its own contributing guide,
CONTRIBUTING.md,
with the same steps as this page in short. The maintainers of se7enxweb/exponential.packages.exponential.earth
review the pull request: they read your source repository, check the archives and the index entry against the
checklist, install the package in a sandbox of their own, may ask for changes, and merge it when it is ready. Its first pull request (#1, "added ezwebin and plain site to installation
version", 31 December 2023) went in exactly this way. After a merge, the push to master republishes the server
and every installation that reads that release's index sees your package.
Questions about a package before you open a pull request are welcome in the project's issue trackers; see When something goes wrong for where each tracker is.
Related pages
- Site packages: start here
- Making your own site package
- The package server
- Documentation requirements for site packages
- Choosing where to publish
- Free documentation: this page is free to copy, translate and improve under the GNU FDL 1.3.
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.