developion / craft
A Craft CMS starter package
Installs: 5
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Type:project
pkg:composer/developion/craft
Requires
- craftcms/ckeditor: ^4.9.0
- craftcms/cms: ^5.0.0
- developion/site-plugin: ^1.0.0
- nystudio107/craft-code-field: ^5.0.1
- squirrelphp/twig-php-syntax: ^1.9
- vlucas/phpdotenv: ^5.4.0
Requires (Dev)
- craftcms/generator: ^2.0.0
- developion/coding-standards: ^1.1
- friendsofphp/php-cs-fixer: ^3.54
- marcusgaius/phpstan: ^1.0
- yiisoft/yii2-shell: ^2.0.3
This package is auto-updated.
Last update: 2025-12-01 11:05:17 UTC
README
This project provides a ready-to-use DDEV environment, Craft CMS configuration, and a prebuilt content builder to accelerate development across Craft-based projects.
π§ Overview
The Craft Starter Project serves as a baseline for all new Craft CMS projects. It includes a minimal setup with core sections, a content builder, and an optimized DDEV workflow. You can install it directly from Packagist using Composer β cloning the GitHub repository is not required.
βοΈ Requirements
Before you begin, make sure you have:
ποΈ Installation
Follow the steps below to create and configure a new Craft CMS project using the starter pack.
1. Create a new project directory
mkdir my-craft-site && cd my-craft-site
2. Configure DDEV for Craft CMS
ddev config --project-type=craftcms --docroot=web ddev start
3. Create a new project from the package
composer create-project "developion/craft:dev-master"
π‘ Always use the Packagist package instead of cloning the GitHub repository.
4. Follow the CLI setup
During installation, the CLI will guide you through:
- Database configuration
- Admin user setup
- Site name and URL
- Initial environment setup
π§ Environment Configuration
After the installation, open the generated .env file and ensure it includes the following values:
DISALLOW_ROBOTS=true CP_TRIGGER=admin ALLOW_ADMIN_CHANGES=true DEV_MODE=true ACTION_TRIGGER=actions
These variables configure the control panel trigger, development mode, and prevent indexing in local environments.
π§βπ» Local Development
Launch the project
ddev launch
Youβll see a blank homepage β this is expected for a clean starter setup.
Access the admin panel
https://your-project-name.ddev.site/admin
Login with the credentials you created during the CLI setup.
Once logged in, you can start building your site structure, fields, and templates.
π§© Project Structure
The starter pack comes with a preconfigured Craft setup:
| Area | Description |
|---|---|
| Home Page | Single section ready for customization |
| Pages Channel | Fully working channel for standard pages |
| Content Builder | Includes 6 flexible block types for modular content |
Youβre free to add, remove, or modify everything to match your project needs.
π¨ Frontend Development
Building Assets
When you have installed the project, you also need to install Node modules for asset building.
-
Install Node modules
In the root of your project, run:ddev npm ci
-
Work with CSS
Every time you work with CSS or make frontend changes, run:ddev npm run dev
-
Explore other commands
You can view the rest of the available frontend commands in thegulpfile.jsfile.
ποΈ Example Directory Structure
craft-starter-project/
βββ config/
β βββ general.php
β βββ db.php
β βββ routes.php
βββ modules/
β βββ app/
βββ templates/
β βββ _layouts/
β βββ _partials/
β βββ index.twig
βββ web/
β βββ index.php
β βββ cpresources/
βββ composer.json
βββ gulpfile.js
βββ package.json
βββ ddev/
βββ .env
π§° Useful Commands
| Command | Description |
|---|---|
ddev start |
Start the DDEV containers |
ddev stop |
Stop all running DDEV containers |
ddev launch |
Open the site in your default browser |
ddev ssh |
Access the web container shell |
composer install |
Install dependencies |
composer update |
Update dependencies |
ddev npm ci |
Install Node modules |
ddev npm run dev |
Build frontend assets in development mode |
β¨ Features
- β‘ Preconfigured Craft CMS 4+ setup
- π§± Content builder with 6 flexible block types
- π§© Working Pages channel and Home single section
- π³ DDEV-based Docker environment for local development
- π¨ Frontend build pipeline with npm and Gulp
- π Ready
.envconfiguration for local or staging environments - πͺΆ Lightweight structure β easy to extend or customize
π¦ Package Information
-
GitHub Repository:
https://github.com/developion/craft-starter-project -
Packagist Package:
https://packagist.org/packages/developion/craft
Use the Packagist package to install the latest stable or development version.