bonnier/willow-base-theme

There is no license information available for the latest version (4.56.0) of this package.

Base Willow theme for WordPress

Installs: 3 837

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 9

Forks: 0

Open Issues: 9

Type:wordpress-theme

4.56.0 2022-01-21 09:18 UTC

This package is auto-updated.

Last update: 2022-01-24 13:24:38 UTC


README

A RESTful WordPress API Theme.

League/Fractal is used to transform the data output in the API.

API

There is extensive API documentation for the RESTful API here: Postman Documentation

The API is an extension of WordPress REST API

Requirements

  • PHP >= 7.1
  • Composer

WordPress installation

In your Roots Bedrock installation you can install the theme with composer.

Because Advanced Custom Fields isn't part of Packagist or WordPress Packagist you will need to add the repository to your main composer file, before requiring this theme.

You can find a guide here: ACF as a Composer Dependency

You will also need to add the github repository as a composer repository:

"repositories": [
    {
      "type": "vcs",
      "url": "https://github.com/BenjaminMedia/willow-base-theme"
    }
]

Once that is set up, you can require the plugin as a composer package:

composer require bonnier/willow-base-theme

Standalone installation

For development purposes, it can be useful to set the theme up on its own.

  1. Install via git: git clone https://github.com/BenjaminMedia/willow-base-theme or through your git gui (SourceTree, GitHub Desktop or other)
  2. Navigate into the project folder: cd willow-base-theme
  3. Copy the environment file: cp .env.example .env
  4. Enter the ACF PRO license key into the environment file
  5. Run composer install
  6. All done

Tests

Tests are using Codeception's framework for WordPress.

To run tests, execute the command composer unit