Zero One Documentation
Theme demo
  • Overview
  • Terms & Guidelines
  • Guide
    • Installation
      • Local environment
      • Server
      • Default language!
      • Multilanguage website
      • Config options
      • Folder structure
      • htaccess
      • Updating
      • PHP Composer
    • Administration panel
      • Translating panel
    • Site options
      • SEO options
      • Multi-language
    • Theme styling
      • Less/CSS setup
      • Changing Less variables
      • app.less file
      • Customizing elements
      • Helpful classes
    • Page types
      • Page options
    • Blog
      • Comments
      • Article
    • Work (Portfolio)
      • Project page
    • Shop
      • Snipcart
    • Layout Builder
      • Column Options block
      • Subgrid block
      • Card block
      • Text (Writer) block
      • Custom Heading block
      • Custom List block
      • Typed Text block
      • Quote block
      • Button block
      • › 25 more blocks
    • Form Builder (Premium)
    • OLD Page Builder deprecation
    • Tricks
      • Using icons in the content
      • Kirbytext link tag to button
      • Tricks with image classes
      • Adding Google Fonts
      • Custom icons
      • Cookie notice/banner
    • Theme extending
      • Page Transitions (Swup)
      • Contact form extending
      • Self-hosted fonts
      • Adding new templates
      • Adding new Content block (Layout Builder)
    • GDPR
  • More
  • Support
  • Hire us
  • Changelog
  • Credits
  • Affiliate
Powered by GitBook
On this page
  • Partial PHP Composer support
  • PHP Composer for beginners

Was this helpful?

  1. Guide
  2. Installation

PHP Composer

This is optional, and primarily for advanced users.

PreviousUpdatingNextAdministration panel

Last updated 1 year ago

Was this helpful?

For those who are already friends with Composer, everything will be clear just by looking at composer.json file in install root.

Also, by overwriting this file on every Zero One update you will always know what version of the Zero One theme you have, and what is the version of some plugins. Unfortunately, not all plugins have Composer support so it is not a complete list.

Partial PHP Composer support

Zero One has partial PHP support:

  1. Because we don't recomend updating Kirby and plugins to new versions before we test new versions first and create compatibility changes if needed. That way the risk of unintended consequences are minimal

  2. Some Zero One plugins are modified versions of original plugins, and shouldn't be ever updated through PHP Composer

    • Sitemapper

    • Kirby Form Block Suite

Plugins we left in the composer.json file didn't cause issues so far.

PHP Composer for beginners

Why use Composer at all? Well, primarily to update Kirby and plugins easier, and to track their versions. And later when you are comfortable with it, you can use it to add more project dependencies/plugins, just by updating composer.json file.

Install Composer on your system

Choose an option depending on what your system is and install it.

Project install

Go to your local install root, run your terminal there, and run the next command

composer install

After that run command

composer update

And that's about it.

It will add a new vendor folder to your install root, and add some dependencies in it. It will also update Kirby and some plugins to the required versions. Learn more at

It will update everything to match the versions in composer.json file. Learn more at

https://getcomposer.org/download/
https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies
https://getcomposer.org/doc/01-basic-usage.md#updating-dependencies-to-their-latest-versions