PHPackages                             pollen-solutions/wp-skeleton - 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. pollen-solutions/wp-skeleton

ActiveProject[Utility &amp; Helpers](/categories/utility)

pollen-solutions/wp-skeleton
============================

Pollen Solution Wordpress project skeleton.

v1.0.28(3y ago)327MITShellPHP ^7.4 || ^8.0

Since Aug 10Pushed 1y ago1 watchersCompare

[ Source](https://github.com/pollen-solutions/wp-skeleton)[ Packagist](https://packagist.org/packages/pollen-solutions/wp-skeleton)[ RSS](/packages/pollen-solutions-wp-skeleton/feed)WikiDiscussions master Synced today

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

Wordpress Skeleton
==================

[](#wordpress-skeleton)

[![Latest Stable Version](https://camo.githubusercontent.com/3976360d8acce19437c907576c8835763ad4e0fa2ff4f48669037dee6b5dc29f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f706f6c6c656e2d736f6c7574696f6e732f77702d736b656c65746f6e2e7376673f7374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/pollen-solutions/wp-skeleton)[![MIT Licensed](https://camo.githubusercontent.com/daa52099573be5a50c320c4387496400f2f722e49f86a42db8d5778130d3582d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d677265656e3f7374796c653d666f722d7468652d6261646765)](LICENSE.md)[![PHP Supported Versions](https://camo.githubusercontent.com/d9d71d0b69072c51e1ff7adfdb6270f896f75787500ce6437120e23727c081d1/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d2533453d372e342d3838393242463f7374796c653d666f722d7468652d6261646765266c6f676f3d706870)](https://www.php.net/supported-versions.php)

**WordPress Skeleton** Component provides structures of WordPress project based on Pollen Solutions suite.

Table of contents
-----------------

[](#table-of-contents)

- [Features](#features)
- [Installation](#installation)
    - [Standard installation](#standard-installation)
    - [Docker installation](#docker-installation)
- [Configuration](#configuration)
    - [Environment configuration](#environment-configuration)
    - [Customize a local environment configuration](#customize-a-local-environment-configuration)
    - [Environment Variable Types](#environment-variables-types)
    - [Environment variable mapping](#environment-variable-mapping)
    - [Use application variable](#use-application-variable)
- [Directory structure](#directory-structure)
    - [The Root directory structure](#the-root-directory-structure)
    - [The Root directory details](#the-root-directory-details)

Features
--------

[](#features)

The Pollen solutions **Skeleton** component embeds :

- [Composer](https://getcomposer.org/), as package manager for PHP libraries.
- [ViteJS](https://vitejs.dev/) as assets bundler and responsible for compiling, transpilating, versioning, optimizing ...
- [Pollen solutions components suite](https://github.com/pollen-solutions) that includes :
    - A dependency injection container
    - A routing system
    - A templating library
    - An asset manager and injector
    - An expandable command line interface
    - An event manager
    - ...
- A preconfigured Docker environment integrating :
    - A light-weight command-line interface for interact with Docker easily
    - A PHP server that run through Apache
    - A MySQL server
    - An email previewer service (MailHog)
    - A sharing local application service
    - ...
- ... And a lot of other kinds of magic !

To try it is already to contribute, you are welcome !

Installation
------------

[](#installation)

### Standard installation

[](#standard-installation)

#### Prerequisite

[](#prerequisite)

- **PHP** must be installed on your machine [see details](https://www.php.net/manual/install.php).
- **Composer** must be installed on your machine [see details](https://getcomposer.org/download/).

#### Launch installation

[](#launch-installation)

```
composer create-project pollen-solutions/wp-skeleton your-app-name
```

#### Serve the app

[](#serve-the-app)

Serve your application using the [built-in web server in PHP](https://www.php.net/manual/en/features.commandline.webserver.php) (or your server of choice) from the `public` directory:

```
php -S 127.0.0.1:8000 -t public
```

Visit the application in the browser:

-

### Docker installation

[](#docker-installation)

#### Prerequisite

[](#prerequisite-1)

- Docker must be installed on your machine [see details](https://docs.docker.com/get-docker/)

#### Launch installation

[](#launch-installation-1)

```
composer create-project pollen-solutions/wp-skeleton your-app-name --no-install --no-scripts
```

Launch application builder

```
cd ./your-app-name

bin/app.build
```

Visit the application in the browser:

-

Retrieve [More details about docker usage](docs/Docker.md) in a Pollen application from the built-in documentation.

Configuration
-------------

[](#configuration)

### Environment configuration

[](#environment-configuration)

During the installation process, the file `.env.example` is copied to `.env`. This file contains all required default configuration.

```
# ENVIRONMENT
APP_ENV=dev
APP_DEBUG=true
APP_URL=http://127.0.0.1:8000
APP_TIMEZONE=Europe/Paris

# DATABASE
DATABASE_URL=sqlite:///%%app.base_dir%%/var/database.sqlite
```

### Customize a local environment configuration

[](#customize-a-local-environment-configuration)

To customize your application configuration, you can directly edit the `.env` file, but the best practice is to create a new `.env.local` file that will contain all the configuration attributes specific to your installation. Through the `.env.local` file you can if necessary override an environment value declared in the `.env` file or define new ones :

```
# DATABASE
DATABASE_URL=mysql://root:root@mysql:3306/pollen

#REDIS
REDIS_CLIENT=phpredis
REDIS_HOST=127.0.0.1
```

### Environment variables types

[](#environment-variables-types)

```
STRING_VAR=string
QUOTES_VAR="quoted variable"
EMPTY_STRING=
BOOL_VAR=true
NULL_VAR=null
```

### Environment variable mapping

[](#environment-variable-mapping)

You can use another existing global or previously defined environment variable like this :

```
DB_USERNAME=${MYSQL_USER}
DB_PASSWORD=${MYSQL_PASSWORD}
```

Note that, for security reasons, global environnement variables couldn't be overridden.

### Use application variable

[](#use-application-variable)

In some special cases, you may need to access application variable to complete the configuration of your environment variables and the merge vars could help you.

The paths of the application are natively available :

- `%%app.base_dir%%`: Absolute path to the root directory of the app.
- `%%app.public_dir%%`: Absolute path to the public directory of the app.

Example of usage :

```
DATABASE_URL=sqlite:///%%app.base_dir%%/var/database.sqlite
```

Pollen solutions suite uses the **vlucas/phpdotenv** library to work. More information on its [github repository](https://github.com/vlucas/phpdotenv).

Directory structure
-------------------

[](#directory-structure)

The **WordPress Skeleton** component is a micro-framework to work with the Wordpress CMS. Like other solutions of this type, it is opinionated and its directory structure is intended to provide a starting point for creating a complete web application.

### The Root directory structure

[](#the-root-directory-structure)

```
|–– bin
|–– bootstrap
|–– config
|–– docker
|–– docs
|–– (node_modules)
|–– public
    |–– (assets)
    |–– languages
    |–– mu-plugins
    |–– plugins
    |–– themes
    |–– uploads
    |–– (wordpress)
|–– resources
    |–– assets
    |–– views
|–– src
|–– tests
|–– var
|–– (vendor)

```

### The Root directory

[](#the-root-directory)

#### src

[](#src)

The `src` directory contains the core PHP code of your application.

#### resources

[](#resources)

The `resources` directory contains the templating code. This included views and css, js, fonts, images and all other assets files.

#### public

[](#public)

The `public` directory contains the index.php file, which is the entry point for all requests entering your application and configures autoload.

This directory also houses the build assets such css, js, fonts, images and all other assets files.

#### config

[](#config)

The `config` directory, as the name implies, contains all of your application's PHP configuration files.

#### docs

[](#docs)

The `docs` directory contains the complete documentation of the micro framework and its components. Work in progress ;)

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance26

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~17 days

Recently: every ~0 days

Total

30

Last Release

1231d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c1d9488545d6b446f8df86ec373a070e7fed1166fc47e1324d963e46d3d838d3?d=identicon)[presstify](/maintainers/presstify)

---

Top Contributors

[![jordy-manner](https://avatars.githubusercontent.com/u/733356?v=4)](https://github.com/jordy-manner "jordy-manner (39 commits)")

---

Tags

phpwordpressboilerplateSkeletonpollen-solutions

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/pollen-solutions-wp-skeleton/health.svg)

```
[![Health](https://phpackages.com/badges/pollen-solutions-wp-skeleton/health.svg)](https://phpackages.com/packages/pollen-solutions-wp-skeleton)
```

###  Alternatives

[johnpbloch/wordpress

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

6079.5M466](/packages/johnpbloch-wordpress)[roots/bedrock

WordPress boilerplate with Composer, easier configuration, and an improved folder structure

6.5k441.8k2](/packages/roots-bedrock)[markocupic/contao-bundle-creator-bundle

This bundle provides a bundle maker for Contao 4.\*. The extension will create a fully working backend- or/and frontend module after you have defined a few parameters in the contao backend.

224.7k](/packages/markocupic-contao-bundle-creator-bundle)

PHPackages © 2026

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