craftcms / craft
Craft CMS
Installs: 264 310
Dependents: 2
Suggesters: 1
Security: 0
Stars: 184
Watchers: 16
Forks: 89
Language:Twig
Type:project
Requires
- craftcms/cms: ^5.0.0
- vlucas/phpdotenv: ^5.4.0
Requires (Dev)
- craftcms/generator: ^2.0.0
- yiisoft/yii2-shell: ^2.0.3
This package is auto-updated.
Last update: 2024-09-27 15:53:38 UTC
README
Craft is a flexible, user-friendly CMS for creating custom digital experiences on the web and beyond.
In technical terms, it’s a self-hosted PHP application backed by a MySQL or Postgres database. Read more in the official documentation.
Psst! Looking for the Craft source code? Need to file a bug report or feature request? Check out craftcms/cms
.
📯 If you just heard about Craft: Take a feature tour on our website—then spin up a demo project to try it out for yourself.
👷♀️ If you are eager to start building: You’re in exactly the right place!
Getting Started
This repository is a bare-bones Composer “project”, intended for use with the composer create-project
command. It contains only the folders and files absolutely required to run Craft.
Tip
Our tutorial covers this setup process in greater depth. If you get stuck, give it a once-over; if things still aren’t clicking, help is never far away in our community or via official support.
You can also find these instructions (and some other helpful tips) in the documentation.
The best way to spin up your first project is with DDEV, a cross-platform, Docker-based PHP development environment.
- Install DDEV
- Choose a folder for your project and move into it:
cd /path/to/web/projects mkdir my-project cd my-project
- Configure a new DDEV project, and install Craft:
ddev config --project-type=craftcms --docroot=web # Use this package as a starting point: ddev composer create -y --no-scripts craftcms/craft # Run the Craft CMS installer (use all defaults): ddev craft install
- Run
ddev launch
to open the project in your browser.
Craft’s control panel is located at /admin
. The rest is up to you! Pick up where we left off in the tutorial, or dive right in on modeling your own content:
- 🗃️ Elements: Learn about Craft’s core content types, and how to customize them.
- 📐 Fields: Create precisely the data structure and authoring experience you need.
- ✏️ Templating: Start using your data in a totally custom front-end.
Resources
Craft comes with a ton of official and community resources.