All Projects → wodby → wordpress-composer

wodby / wordpress-composer

Licence: GPL-2.0 license
Composer template for WordPress projects.

Projects that are alternatives of or similar to wordpress-composer

internetarchivebot
iabot.toolforge.org
Stars: ✭ 67 (+6.35%)
Mutual labels:  composer
dudestack
A toolkit for creating a new professional WordPress project with deployments. Originally based on Roots/bedrock.
Stars: ✭ 82 (+30.16%)
Mutual labels:  composer
ip
Immutable value object for IPv4 and IPv6 addresses, including helper methods and Doctrine support.
Stars: ✭ 212 (+236.51%)
Mutual labels:  composer
tdee-calculator
TDEE Calculator is a composer library that calculates how much energy (calories) are burned daily given the weight, height and age or Lean Body Mass.
Stars: ✭ 16 (-74.6%)
Mutual labels:  composer
drupal-dev-docker
An opinionated Drupal development environment based on Docker.
Stars: ✭ 22 (-65.08%)
Mutual labels:  composer
twity
Private composer repository - Packagist mirror
Stars: ✭ 31 (-50.79%)
Mutual labels:  composer
jadibot
Telegram Bot for jadi.net
Stars: ✭ 59 (-6.35%)
Mutual labels:  composer
php-finder refactoring-kata
🐘🔍Incomprehensible Finder Refactoring Kata port for PHP
Stars: ✭ 22 (-65.08%)
Mutual labels:  composer
killposer
List and remove composer-created vendor directories with a cli tool
Stars: ✭ 29 (-53.97%)
Mutual labels:  composer
email
Aplus Framework Email Library
Stars: ✭ 127 (+101.59%)
Mutual labels:  composer
package-command
Lists, installs, and removes WP-CLI packages.
Stars: ✭ 16 (-74.6%)
Mutual labels:  composer
comphar
Pack all composer dependencies into a single phar file.
Stars: ✭ 67 (+6.35%)
Mutual labels:  composer
docker-laravel-8
A simple Docker - Laravel 8 - MySQL - Redis - PHPAdmin - NGINX - PHP 7.4 - Composer - Artisan - XDebug
Stars: ✭ 130 (+106.35%)
Mutual labels:  composer
ACCESS-NYC
Find help in NYC with food, money, housing, work, and more on ACCESS NYC. Maintained by @NYCOpportunity
Stars: ✭ 27 (-57.14%)
Mutual labels:  composer
c9phplaravel
This script installs PHP 7.3 and required extensions and Laravel in Cloud9
Stars: ✭ 17 (-73.02%)
Mutual labels:  composer
stock-api-libphp
PHP implementation of the Stock APIs
Stars: ✭ 16 (-74.6%)
Mutual labels:  composer
laravel-mitnick
🔐 laravel-security helps you secure your Laravel apps by setting various HTTP headers.
Stars: ✭ 76 (+20.63%)
Mutual labels:  composer
yii2-composer
Yii 2 composer extension
Stars: ✭ 76 (+20.63%)
Mutual labels:  composer
devstack
🐳 Dockette dockerized web devstack (@f3l1x)
Stars: ✭ 42 (-33.33%)
Mutual labels:  composer
private-packagist-api-client
Private Packagist API Client
Stars: ✭ 28 (-55.56%)
Mutual labels:  composer

Composer Template for WordPress Projects

This project template should provide a kickstart for managing your site dependencies with Composer.

This project consist of:

  • WordPress core: johnpbloch/wordpress-core-installer
  • Repository https://wpackagist.org/ to install WordPress plugins and themes
  • composer/installers to set custom paths for plugins and themes
  • drupal-composer/preserve-paths to exclude paths for plugins and themes under version control
  • wodby.yml that runs composer install. You can remove it if you're not using Wodby

Current WordPress core: ~5.0

Paths

By default, wordpress core will be installed in ./web directory. Plugins and themes will be installed in ./web/wp-content/plugins and ./web/wp-content/themes. Point your Apache vhost or similar to this project's ./web directory.

Usage

First you need to install composer.

Note: The instructions below refer to the global composer installation. You might need to replace composer with php composer.phar (or similar) for your setup.

Start a new project:

composer create-project wodby/wordpress-composer some-dir --stability dev --no-interaction

The composer create-project command passes ownership of all files to the project that is created. You should create a new git repository, and commit all files not excluded by the .gitignore file.

How to install WordPress plugins and themes?

With composer require ... you can download new dependencies to your installation.

cd some-dir
composer require wpackagist-plugin/wp-cfm

How to manage my custom themes and plugins under version control?

  1. Exclude path to your plugin or theme from .gitignore. Example for theme under web/wp-content/themes/my-custom-theme/:
    !web/
    web/*
    !web/wp-content/
    web/wp-content/*
    !web/wp-content/themes/
    web/wp-content/themes/*
    !web/wp-content/themes/my-custom-theme/
    
  2. Add the same path to your composer.json under extra > preserve-paths:
    "preserve-paths": [
      "web/wp-content/themes/custom"
    ]
    
  3. Add your plugin/theme directory under version control
  4. Run composer install. Composer will install WordPress core and keep your custom theme

Deployment via Wodby

  1. Create a new project.
  2. Connect the repository to Wodby.
  3. Deploy new app, choose WordPress stack, on the 2nd step of the form choose connected repository and enter web as Codebase dir.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].