GithubHelp home page GithubHelp logo

webdeveric / wp-starter Goto Github PK

View Code? Open in Web Editor NEW
10.0 4.0 1.0 478 KB

WordPress dependency management with Composer

Home Page: https://packagist.org/packages/webdeveric/wp-starter

PHP 38.77% Shell 20.95% Makefile 22.44% Dockerfile 17.85%
wordpress composer docker wordpress-packagist

wp-starter's Introduction

WP Starter

WordPress dependency management with Composer

With Composer, you can define the WordPress core as a dependency so you never have to include it in your repo. You can also specify which plugins and themes you want to require.

WordPress core files

For this to work, the WordPress core needs to be put in its own directory.

The included composer.json file is already set up to do all of this for you.

Plugins and themes

If the plugins/themes you want are published to the wordpress.org SVN repo, they will also be available on WordPress Packagist, which is a Composer repository that mirrors the SVN repo.

If you want to install a plugin from your version control system (Git, SVN, etc.), please follow these instructions.

The included composer.json file has an example of getting a plugin from Github.

Installation

Install Composer before you do anything else.

Use this repo as the basis for a new project

composer create-project -s dev --prefer-dist --no-interaction -- webdeveric/wp-starter ./your-folder-here

Local development

Run composer setup-hooks to setup the git pre-commit hook. It will check coding standards and run tests when you commit.

I've included a Dockerfile that is based on php:8.3-apache It comes with Xdebug already installed.

A sample DB will be imported the first time you build. The WordPress username and password are both wp.

To get started, run the following:

1️⃣ make install

2️⃣ make dev

You may want to view the Makefile to see all the commands.

Useful links

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.