Install Pagekit from source

When building Pagekit extensions, you can totally rely on a Pagekit installation from one of the release packages available at pagekit.com) or from Github).

However, if you always want stay up to date with the current development version, you can install Pagekit from the source available on Github. This article explains, which steps you need to take.

Check out and install

Make sure that Composer and npm are installed.

Clone the repository.

  1. git clone --branch develop https://github.com/pagekit/pagekit.git

Navigate to the cloned directory and install PHP dependencies.

  1. composer install

Install Node dependencies and build the front-end components:

  1. npm install

To watch for local LESS asset changes, run gulp watch.

To watch for JS module changes, run webpack —watch.

When the installer has finished, point your browser to the Pagekit URL on your web server and follow the installer.

When you have a running Pagekit installation, use the Pagekit CLI to fetch translations. Without that, the interface will appear in English only.

  1. php pagekit translation:fetch

Stay up to date

If you've set up Pagekit from source, run these commands to get new commits and to rebuild everything you need.

  1. git pull
  2. composer install
  3. npm install