PHPackages                             enpii/wp-site-enpii-boilerplate - 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. enpii/wp-site-enpii-boilerplate

ActiveWordpress-project

enpii/wp-site-enpii-boilerplate
===============================

The WordPress boilerplate for WordPress development with Laravel ready

1.0.0(2y ago)060MITPHPPHP ^7.3|^8.0

Since May 12Pushed 1y ago2 watchersCompare

[ Source](https://github.com/enpiicom/wp-site-enpii-boilerplate)[ Packagist](https://packagist.org/packages/enpii/wp-site-enpii-boilerplate)[ RSS](/packages/enpii-wp-site-enpii-boilerplate/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (12)Versions (3)Used By (0)

Introduction
------------

[](#introduction)

This is the modern WordPress setup for shared-host development.

- It uses Apache for Docker to make your development simple and it would be consistent for deployment to shared-host (mostly use Apache)
- It includes task runner based on webpack to allow theme, plugins assets compiling
- It also includes phpcs and phpcbf to ensure the the codestyle of the project

### Initialize

[](#initialize)

- Create the project (stable version)

```
composer create-project enpii/wp-site-enpii-boilerplate

```

- Use development version (branch **master**)

```
composer create-project -s dev enpii/wp-site-enpii-boilerplate

```

in case you want to specify the branch (e.g. branch **develop**)

```
composer create-project -s dev enpii/wp-site-enpii-boilerplate:dev-develop

```

- Ensure that you have the **.env** file, if it doesn't exists, you can copy from the example file

```
cp .env.example .env

```

- Then use the appropriate env variables for you working environment, remember to check the SALTS section to use correct ones.

Development
-----------

[](#development)

- Update the dependencies

```
XDEBUG_MODE=off composer update

```

### Deploy with Docker

[](#deploy-with-docker)

- Start all containers

```
docker-compose up -d

```

then the website would be available at (the port 19080 can be edited in **.env** file but you need to down and up the containers again)

- Update composer with Docker

```
docker-compose exec -e XDEBUG_MODE=off wordpress composer update

```

- Run phpcs

```
docker compose exec wordpress yarn phpcs

```

or

```
docker compose exec wordpress yarn phpcbf

```

to fix the codestyle issue

- Run wp-app artisan

```
docker-compose exec --user=webuser wordpress ./wp-enpii-base-artisan wp-app:hello

```

or

```
docker-compose exec --user=webuser wordpress wp enpii-base artisan wp-app:hello

```

### Running wp-cli

[](#running-wp-cli)

- With Docker

```
docker compose exec --user=webuser wordpress wp enpii-base info

```

- On local machine, stay on the project root

```
wp enpii-base info

```

### Working with GIT

[](#working-with-git)

- You can put your own plugins, themes, mu-plugins to corresponding folders. Then if you use git, you can add these things to your repository by:
    - Update the `./wp-content/.gitignore` to allow your plugins, mu-plugins, themes
    - e.g. you have a plugin called `hello-world`, you need to add this

    ```
    !plugins/hello-world
    !plugins/hello-world/**

    ```

    - Then you can `git add ` to the repo
- To ensure the Git hook runs automatically on the server at the post-commit stage—executing phpcbf to fix PHP CodeSniffer (PHPCS) errors, running phpstan for verification, and staging modified files—contributors need to clone the repository and set up the `core.hooksPath` configuration. If `core.hooksPath` isn’t already configured, make sure it is set up by running:

```
git config core.hooksPath .githooks

```

### Compiling assets (CSS, JS)

[](#compiling-assets-css-js)

- This repo consists of a sample plugin **Demoda** and a sample theme **Appeara Alpha**, it has the webpack configs to compile plugin and theme CSS and JS

To install dependencies

```
docker compose exec wordpress yarn install

```

Compile plugin assets

```
docker compose exec wordpress yarn build-plugin

```

or to watch and compile

```
docker compose exec wordpress yarn dev-plugin

```

Similar to the theme with

```
docker compose exec wordpress yarn build-theme

```

and watch

```
docker compose exec wordpress yarn dev-theme

```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance31

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 55.2% 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

Unknown

Total

1

Last Release

730d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7f8da7894da0f0f0b698496fd19ce845bbfe19987b5e990fa6793715b4698464?d=identicon)[npbtrac](/maintainers/npbtrac)

---

Top Contributors

[![loikimle](https://avatars.githubusercontent.com/u/50190659?v=4)](https://github.com/loikimle "loikimle (48 commits)")[![npbtrac](https://avatars.githubusercontent.com/u/295365?v=4)](https://github.com/npbtrac "npbtrac (39 commits)")

---

Tags

laravelwordpressboilerplatewordpress laravel

### Embed Badge

![Health badge](/badges/enpii-wp-site-enpii-boilerplate/health.svg)

```
[![Health](https://phpackages.com/badges/enpii-wp-site-enpii-boilerplate/health.svg)](https://phpackages.com/packages/enpii-wp-site-enpii-boilerplate)
```

###  Alternatives

[johnpbloch/wordpress

WordPress is open source software you can use to create a beautiful website, blog, or app.

6079.5M471](/packages/johnpbloch-wordpress)

PHPackages © 2026

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