PHPackages                             bolt/standard-project - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. bolt/standard-project

Abandoned → [bolt/project](/?search=bolt%2Fproject)Project[Utility &amp; Helpers](/categories/utility)

bolt/standard-project
=====================

Bolt 4 standard project skeleton

1.0.9(6y ago)4414737MITPHPCI passing

Since Jul 14Pushed 4mo ago12 watchersCompare

[ Source](https://github.com/bolt/standard-project)[ Packagist](https://packagist.org/packages/bolt/standard-project)[ RSS](/packages/bolt-standard-project/feed)WikiDiscussions main Synced 3d ago

READMEChangelog (10)Dependencies (13)Versions (11)Used By (0)

Bolt standard project skeleton
==============================

[](#bolt-standard-project-skeleton)

Bolt CMS is an open source, adaptable platform for building and running modern websites. Built on PHP, Symfony and more. [Read the site](https://boltcms.io) for more info.

**To check out Bolt and set up your first Bolt installation, read [Installing Bolt 5](https://docs.bolt.cm/installation).**

---

Installing Bolt CMS
-------------------

[](#installing-bolt-cms)

### with Composer

[](#with-composer)

**Note**: Installing with composer and running the site on your local machine using the method described below is the preferred method of the Bolt core development team.

You can set up a new Bolt project, using the following command, replacing `myprojectname` with your desired project's name.

```
composer create-project bolt/project myprojectname
```

Navigate into the newly created folder, and configure the database in `.env` (The configuration is intended to work with the database SQLite).

```
# Configure database for doctrine/doctrine-bundle
# SQLite (note: _three_ slashes)
DATABASE_URL=sqlite:///%kernel.project_dir%/var/data/bolt.sqlite

# MYSQL / MariaDB
#DATABASE_URL=mysql://db_user:"db_password"@127.0.0.1:3306/db_name?serverVersion=5.7

# Postgres
#DATABASE_URL=postgresql://db_user:"db_password"@127.0.0.1:5432/db_name?serverVersion=11&charset=utf8
```

Set up the database, create the first user and add fixtures (dummy content):

```
bin/console doctrine:database:create # Create database
bin/console doctrine:schema:create # Create schema in database

bin/console doctrine:fixtures:load --no-interaction # Load fixtures in databse (step not compulsory)
bin/console bolt:add-user --admin # Follow the creation steps in the console (warning: fixtures already created an admin user)

composer run post-create-project-cmd # Duplicate themes in the appropriate folder

bin/console bolt:info # Verify Bolt installation
```

Run Bolt using Symfony CLI or your own preferred webserver:

```
symfony server:start -d
symfony open:local
```

Finally, open the new installation in a browser. If you've used one of the commands above, you'll find the frontpage at
The Bolt admin panel can be found at

Log in using the credentials you created when setting up the first user.

> Note: If you don't want to use Docker, don't forget to remove what isn't necessary:
> \- remove `.dockerignore` file
> \- remove `docker-composer.yml` file
> \- remove `Dockerfile` file
> \- remove `docker` folder

### with Docker

[](#with-docker)

**Disclaimer**: Docker is not used by the Bolt core development team. Bolt *can* be run using docker, but you are advised to only attempt this if you have enough experience with Docker yourself to understand what is going on in the `Dockerfile` and in `docker-compose.yml`. The included setup might not be a good fit for *your* Dockerized setup. When in doubt, follow general advice on running Symfony projects in docker, as Bolt is built using Symfony. The Bolt team doesn't provide pre-built containers.

Start by [downloading the Bolt project distribution `.tar.gz` file](https://github.com/bolt/project/releases/latest), or [generate a GitHub repository from the template we provide](https://github.com/bolt/project/generate). Once you have extracted its content, the resulting directory contains the Bolt project structure. You will add your own code and configuration inside it.

**Note**: Try to avoid using the `.zip` file, as it may cause potential permission issues.

Bolt is shipped with a [Docker](https://docker.com) setup that makes it easy to get a containerized development environment up and running. If you do not already have Docker on your computer, it's the right time to [install it](https://docs.docker.com/get-docker/).

On Mac, only [Docker for Mac](https://docs.docker.com/docker-for-mac/) is supported. Similarly, on Windows, only [Docker for Windows](https://docs.docker.com/docker-for-windows/) is supported. Docker Machine **is not** supported out of the box.

Open a terminal, and navigate to the directory containing your project skeleton.

Navigate into the newly created folder, and configure environment variables in the `.env` file for Docker &amp; the database MySQL version 5.7.

```
###> symfony/framework-bundle ###
APP_ENV=dev
APP_DEBUG=1
APP_SECRET=!ChangeMe!
TRUSTED_PROXIES=127.0.0.0/8,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16
TRUSTED_HOSTS='^(localhost|nginx)$'
###< symfony/framework-bundle ###

###> doctrine/doctrine-bundle ###
DATABASE_URL=mysql://bolt:!ChangeMe!@db:3306/bolt?serverVersion=5.7
###< doctrine/doctrine-bundle ###

###> symfony/mailer ###
MAILER_DSN=smtp://mailcatcher:1025
###< symfony/mailer ###
```

Run the following command to start all services using [Docker Compose](https://docs.docker.com/compose/):

```
docker-compose up -d # Running in detached mode
docker-compose exec php bin/console doctrine:schema:create # Create schema in database
docker-compose exec php bin/console doctrine:fixtures:load --no-interaction # Load fixtures in databse (step not compulsory)
docker-compose exec php bin/console bolt:add-user --admin # Follow the creation steps in the console (warning: fixtures already created an admin user)
```

This starts the following services:

NameDescriptionPort(s)Environment(s)dbA MySQL 5.7 database server3306all (prefer using a managed service in prod)phpThe Bolt project with PHP, PHP-FPM 7.4, Composer and sensitive configsn/aallnginxThe HTTP server for the Bolt project (NGINX)8080allh2-proxyA HTTP/2 and HTTPS development proxy for all apps8443dev (configure properly your web server in prod)mailcatcherMailCatcher runs a super simple SMTP server delivered with a web interface1025 for smtp port
1080 for interfaceonly for dev To see the status of the containers, run:```
docker-compose ps
```

 To execute commands in a container, run:```
docker-compose exec
docker-compose exec php sh # To enter the container directly, you will be placed at the root of the project
docker-compose exec php bin/console bolt:add-user # Follow the creation steps in the console (warning: fixtures already created an admin user)
```

 To see the container's logs, run:```
docker-compose logs        # Display the logs of all containers
docker-compose logs -f     # Same but follow the logs
docker-compose logs -f php # Follow the logs for one container
```

Finally, open the new installation in a browser. If you've used one of the commands above, you'll find the frontpage at  or
The Bolt admin panel can be found at  or

The tests
---------

[](#the-tests)

### Static analysis

[](#static-analysis)

- [**ECS - Easy Coding Standard**](https://github.com/symplify/easy-coding-standard)

[The `ecs.php` configuration file is located at the root of the cms project](./ecs.php)

```
# With Composer
composer lint                         # Launch ECS in dry run mode (command to launch in a Continuous Integration)
composer lint:fix                     # Launch ECS in fix mode

# With Docker
docker-compose exec php composer lint # Launch ECS by the php container
```

- [**PHPStan - PHP Static Analysis Tool**](https://github.com/phpstan/phpstan)

[The `phpstan.neon` configuration file is located at the root of the cms project](./phpstan.dist.neon)

```
# With Composer
composer phpstan                         # Launch PHPStan (command to launch in a Continuous Integration)

# With Docker
docker-compose exec php composer phpstan # Launch PHPStan by the php container
```

Contributing
------------

[](#contributing)

If you'd like to contribute, please check [Bolt's core repository](https://github.com/bolt/core/blob/master/CONTRIBUTING.md)and read the ["Contributing to Bolt"](https://docs.bolt.cm/4.0/other/contributing) documentation page.

###  Health Score

44

—

FairBetter than 92% of packages

Maintenance51

Moderate activity, may be stable

Popularity26

Limited adoption so far

Community29

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 84.6% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~6 days

Total

10

Last Release

2436d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1835343?v=4)[Bob van de Vijver](/maintainers/bobvandevijver)[@bobvandevijver](https://github.com/bobvandevijver)

![](https://avatars.githubusercontent.com/u/3901745?v=4)[Tobias Feijten](/maintainers/tobias-93)[@tobias-93](https://github.com/tobias-93)

![](https://avatars.githubusercontent.com/u/1833361?v=4)[Bob den Otter](/maintainers/bobdenotter)[@bobdenotter](https://github.com/bobdenotter)

---

Top Contributors

[![bobdenotter](https://avatars.githubusercontent.com/u/1833361?v=4)](https://github.com/bobdenotter "bobdenotter (391 commits)")[![I-Valchev](https://avatars.githubusercontent.com/u/7093518?v=4)](https://github.com/I-Valchev "I-Valchev (34 commits)")[![bobvandevijver](https://avatars.githubusercontent.com/u/1835343?v=4)](https://github.com/bobvandevijver "bobvandevijver (13 commits)")[![toofff](https://avatars.githubusercontent.com/u/966550?v=4)](https://github.com/toofff "toofff (4 commits)")[![evertalbers](https://avatars.githubusercontent.com/u/3974120?v=4)](https://github.com/evertalbers "evertalbers (3 commits)")[![macintoshplus](https://avatars.githubusercontent.com/u/814683?v=4)](https://github.com/macintoshplus "macintoshplus (3 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (3 commits)")[![mcdennem](https://avatars.githubusercontent.com/u/49211363?v=4)](https://github.com/mcdennem "mcdennem (2 commits)")[![garrettboone](https://avatars.githubusercontent.com/u/47018474?v=4)](https://github.com/garrettboone "garrettboone (1 commits)")[![iamgoodbytes](https://avatars.githubusercontent.com/u/3899360?v=4)](https://github.com/iamgoodbytes "iamgoodbytes (1 commits)")[![cv65kr](https://avatars.githubusercontent.com/u/9404962?v=4)](https://github.com/cv65kr "cv65kr (1 commits)")[![postal](https://avatars.githubusercontent.com/u/199559?v=4)](https://github.com/postal "postal (1 commits)")[![simongroenewolt](https://avatars.githubusercontent.com/u/3960?v=4)](https://github.com/simongroenewolt "simongroenewolt (1 commits)")[![brambaud](https://avatars.githubusercontent.com/u/9115419?v=4)](https://github.com/brambaud "brambaud (1 commits)")[![eduardomart](https://avatars.githubusercontent.com/u/1833020?v=4)](https://github.com/eduardomart "eduardomart (1 commits)")[![fabienChaillou](https://avatars.githubusercontent.com/u/42312426?v=4)](https://github.com/fabienChaillou "fabienChaillou (1 commits)")[![flug](https://avatars.githubusercontent.com/u/1810304?v=4)](https://github.com/flug "flug (1 commits)")

---

Tags

composercomposer-projecthacktoberfestphpsymfony

### Embed Badge

![Health badge](/badges/bolt-standard-project/health.svg)

```
[![Health](https://phpackages.com/badges/bolt-standard-project/health.svg)](https://phpackages.com/packages/bolt-standard-project)
```

###  Alternatives

[bolt/project

Bolt standard project skeleton

4429.4k](/packages/bolt-project)[bruli/php-git-hooks

Git hooks for PHP projects.

675370.8k5](/packages/bruli-php-git-hooks)[mapbender/mapbender

Mapbender library

10117.4k5](/packages/mapbender-mapbender)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
