Agency starter kits
This page is for agencies that start every customer project from the same base: Exponential plus their own extensions, a theme and a site package. A starter kit is a bundle whose recipients are your own project teams first and your customers second.
Contents
- What goes into a kit
- Repository layout
- Installing a new project from the kit
- Deployment discipline
- Handing a project to the customer
- Keeping the kit current
What goes into a kit
| Part | Form | Page |
|---|---|---|
| Exponential at a pinned version | composer.json + composer.lock | Composer-based bundles |
| Your extensions | Composer packages from your repositories, or a second extension root | Adding and removing extensions |
| Your theme | an extension with a design | Publishing a theme |
| Your site package | an .ezpkg with your classes, base content, roles and settings | Site packages in a bundle |
| Install configuration | a kickstart.ini template per environment | kickstart.ini templates |
| Web server and Velocity settings | example files | Web server and engine choices |
| Your documentation | getting started, conventions, handover | Documentation to ship |
Repository layout
starter-kit/
composer.json, composer.lock
extension_src/ your own extensions (AdditionalExtensionDirectories[])
packages/ your site package source and the built .ezpkg
deploy/
kickstart.ini.template
velocity.ini.append.php.example
docs/
README.md, LICENSE, NOTICE.txtextension_src/ follows the layout recommended in
Additional extension directories:
"third-party and community extensions" in extension/, "project and customer extensions" in extension_src/, with
site.ini [ExtensionSettings] AdditionalExtensionDirectories[] naming the second root.
Installing a new project from the kit
git clone https://git.example.com/agency/starter-kit.git customer-site
cd customer-site
composer install
for f in packages/*.ezpkg; do php ezpm.php import "$f"; done
umask 077
envsubst < deploy/kickstart.ini.template > kickstart.ini
php bin/php/console exp:kickstarter run --dry-run
php bin/php/console exp:kickstarter run --apply --force
rm -f kickstart.iniThen deliver the generated password from var/log/initial-admin-password to the project lead and delete the file
(Default credentials and first sign-in).
Deployment discipline
- Keep
settings/override/andsettings/siteaccess/out of version control: they hold credentials (4.4). - Sites deployed from version control "can lock their settings with
[ConfigurationSettings] ManagedByDeployment=enabled, which stops the administration from writing settings and templates on the server" (shippeddisabled; ManagedByDeployment). - Use
config.env.phpwithEXP_ENVto keep per-environment settings files (site.ini.test.append.phpnext tosite.ini.append.php); copyconfig.env.php.example, and keep the copy out of version control. - Deploy code changes with the documented order (Caches and autoloads after building).
Handing a project to the customer
- To do: The customer has their own administrator accounts;
adminis retired as a sign-in (Account hygiene). - To do: The customer knows which parts are Exponential (GPL), which are your extensions, and under which license those are delivered (GPL obligations).
- To do: The customer has the source of what you delivered, including your extensions if you distributed them.
- To do: Support and update responsibilities are written down (Support boundaries).
- To do: Editors have the handover material (Handing the site over to editors).
Keeping the kit current
- Rebuild the kit's lock file at each Exponential release you adopt; test; tag the kit (Versions, tags and pinning).
- Projects started from an older kit update like any installation (Updates and upgrade paths).
- Generic fixes go upstream, so the kit does not carry patches forever (Contributing fixes back).
Related pages
- Implementation partners, Implementation project playbook
- Making your own site package
- Composer-based bundles
- 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.