Viget's Craft CMS Starter

May 15, 2026 · View on GitHub

Craft Site Starter

Viget's Craft CMS Starter

Our Craft Site Starter is a quick way to spin up a new Craft CMS project. It's pre-configured with top-notch build tooling, common plugins and starter components based on Blueprint.

If you're a designer or developer at Viget working on a new project, view our Building with Craft Site Starter guide for more information.

Features

Icons

Icons are bundled into a single SVG spritemap at build time by @spiriit/vite-plugin-svg-spritemap and referenced via <use href> from the Icon macro in templates/_components/icon.twig.

To add an icon, drop an SVG into src/icons/ and run npm run build

Getting Started

Create Project

  1. Install DDEV

  2. Choose a folder for your project and move into it:

    cd /path/to/web/projects
    mkdir my-project
    cd my-project
    
  3. Create The Project If you already have PHP and Composer running on your host machine (your computer, not Docker container or DDEV instance), you can run the following command

    composer create-project viget/craft-site-starter=^5.0.0 ./ --ignore-platform-reqs
    

    If you'd rather not set up PHP, you can create the project with a disposable Docker image (Thanks nystudio107).

    docker run --rm -it -v "$PWD":/app -v ${COMPOSER_HOME:-$HOME/.composer}:/tmp composer create-project viget/craft-site-starter=^5.0.0 ./ --ignore-platform-reqs
    
  4. Start DDEV & Install Craft

    ddev start
    ddev craft install
    
  5. Run ddev launch to open the project in your browser

Plugins

This starter includes common plugins that we use on most of our sites. This provides consistency and familiarity between client projects. You may not need every plugin, but avoid replacing standard plugins with similar alternatives (unless absolutely necessary).

NameComposerUsageYear 1 PriceRenewal Price
Amazon S3craftcms/aws-s3This plugin integrates Craft CMS and Amazon S3 cloud storage service.FreeFree
Autocompletenystudio107/craft-autocompleteProvides Twig template IDE autocomplete of Craft CMS & plugin variables. Requires the PHPStorm Symfony Support PluginFreeFree
CKEditorcraftcms/ckeditorCraft CMS’s official rich text pluginFreeFree
Classnamesviget/craft-classnamesConditionally join css class names together in TwigFreeFree
Empty Coalescenystudio107/craft-emptycoalesceAdds the ??? operator to Twig that will return the first thing that is defined, not null, and not empty.FreeFree
Imager Xspacecatninja/imager-xImage optimization and Imgix connector. Provides useful Twig shortcuts for generating transforms and placeholders.$99.00$59.00
Navigationverbb/navigationSimplifies management of complex navigation groups (main menus, footer menus, etc.)$19.00$5.00
Retournystudio107/craft-retourProvides a Craft admin UI to set up redirects. Will automatically create redirects when URLs of entries change.$59.00$29.00
SEOMaticnystudio107/craft-seomaticA turnkey SEO plugin that follows modern SEO best practices.$99.00$49.00
Vitenystudio107/craft-viteLoads front-end files that are compiled by Vite.FreeFree
Expanded Singlesverbb/expanded-singlesChange the entries index sidebar to list all singles, rather than grouping them under a 'Singles' menu item.FreeFree

Contribute to this starter

Local Dev

Ideally, you should be able to clone this repo and make modifications to plugin & build tool configs with minimal fuss.

Run the following and make edits in a feature branch:

ddev start
ddev craft install

See ARCHITECTURE.md for details on technical goals & decisions.

Release Testing

Before releasing, run the following tests.

Verify project renaming scripts work

  • From within the Craft Site Starter repo, run ddev composer run-script post-create-project-cmd and follow the prompts.
  • Use your IDE's diff view to verify that files are renamed properly.
Show Example

Screenshot showing a diff of the codebase

Screenshot showing a diff of the codebase

Run the composer create script to create a new project.

docker run --rm -it -v "$PWD":/app -v ${COMPOSER_HOME:-$HOME/.composer}:/tmp composer create-project viget/craft-site-starter=5.x-dev ./ --ignore-platform-reqs
  • Follow the prompts to create a new local site.
  • Install Craft and ensure home page and Craft admin load.