Skip to content

Easily create a new Composer-based WordPress site.

License

Notifications You must be signed in to change notification settings

wp-forge/wp-site

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WordPress Site

Easily create a new Composer-based WordPress site.

Requirements

Installation

Run this command in the terminal:

composer --remove-vcs create-project wp-forge/wp-site

Optionally append a directory name to the end of the command to customize the folder name that your project will be installed into.

The installation process will check your environment for the required PHP version and PHP extensions. If this presents a problem and you want to force install anyway, just add the --ignore-platform-reqs flag to the command.

Usage

With Laravel Valet

  • Install Homebrew
  • Install Laravel Valet
  • Install MySQL using Homebrew: brew install mysql
  • Start MySQL using Homebrew: brew services start mysql
  • Set password to be root for the root user: $(brew --prefix mysql)/bin/mysqladmin -u root password root
  • Run composer create-project wp-forge/wp-site local
  • Run valet link local (unless you've already run valet park and are in your Valet root directory)
  • Run valet secure local
  • Run cd local
  • Run composer run wp db create - You may need to rename the database in your .env file first if you don't want your database to be named local.
  • Visit https://local.test (unless you set a different top level domain) in the browser to finish the WordPress installation.

If you want your site's domain to be something different, just replace all instances of the word local above with your desired name.

With Local

  • Install Local
  • Create a new WordPress site using the UI
  • Navigate to the site's app directory in the terminal.
  • Run rm -rf public to delete the public directory.
  • Run composer create-project wp-forge/wp-site public
  • Click the link in Local to visit the site in the browser.

Configuration

Open up the .env file to edit database credentials or other WordPress constants.

Reminders

Don't forget to:

  • Update the project's meta data in the composer.json file.
  • Customize the readme.md file for your project.

About

Easily create a new Composer-based WordPress site.

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages