GithubHelp home page GithubHelp logo

mtstrong17 / wordpress-starter Goto Github PK

View Code? Open in Web Editor NEW

This project forked from justcoded/wordpress-starter

0.0 0.0 0.0 517 KB

WordPress Project Template is a skeleton best for rapidly creating projects with modern development tools, easier configuration, and an improved folder structure.

PHP 100.00%

wordpress-starter's Introduction

WordPress Project Template by JustCoded


WordPress Project Template is a skeleton WordPress site with modern development tools, easier configuration, improved folder structure and latest security best practices.

Better project structure

The organization of skeleton is similar to putting WordPress core files in its own subdirectory, wp-content stays the same.

File structure

Dependency management with Composer

Manage your WordPress install and plugins with Composer, a PHP dependency manager. Composer will make development more reliable, help with team collaboration, and it helps maintain a better Git repository.

Easy WordPress configuration

Environment specific configuration files and environment variables with Dotenv.

Enhanced security

  • Deny access to non-web files with server directives (with .htaccess files).
  • Deny PHP scripts execution inside wp-content/uploads folder.
  • Deny browsing the directory files list.
  • Production & Staging environments have a restriction to update files from admin panel (only Media is allowed).
  • Command-line scripts for generating wp-admin HTTP Authorization files.

<< READ MORE >>


Quick start

Requirements

Installation

  1. Create a new project in a new folder for your site:

composer create-project justcoded/wordpress-starter your-project-folder-name

  1. Set important environment variables in .env file:
  • DB_NAME - Database name
  • DB_USER - Database user
  • DB_PASSWORD - Database password
  • DB_HOST - Database host
  • WP_HOME - Full URL to WordPress home (http://example.com)
  1. Run WordPress install as usual by accessing your site at http://example.com/

  2. Enjoy!

Composer helpers

  • composer wp:theme generate new theme based on our Theme Boilerplate
  • composer wp:secure generate new HTTP password for wp-admin folder

Contributing

Contributions are welcome from everyone.

wordpress-starter's People

Contributors

aprokopenko avatar mzhirov avatar ndudarev avatar

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.