Creating a new Statamic project?
If you want to start from scratch, use Composer to create a project based off the
statamic/statamic starter site.
composer create-project statamic/statamic my-site --prefer-dist --stability=dev
You can also use one of the starter kits to jump ahead with a pre-built site. Each starter kit has its own installation docs.
You can also install into an existing Laravel app
"post-autoload-dump": [ "Illuminate\\Foundation\\ComposerScripts::postAutoloadDump", "@php artisan package:discover --ansi", "@php artisan statamic:install --ansi" ],
composer require statamic/cms
If you have existing users in your application, follow these instructions to learn how to make them compatible with Statamic, or how to switch to Statamic’s file-based user driver.
After Statamic is installed, you’ll have the
config/statamic directories added to your project. Your app will continue to work as before and you’ll have Statamic available at your fingertips.
Your explicit routes will take precedence and anything not caught by your app will run through Statamic and will work as documented. Enjoy!
From within your project, use Composer to update the Statamic CMS package:
composer update statamic/cms --with-dependencies
You may prefer to run
composer updateto update all of your dependencies listed in your composer.json file