heyblackmagic / wp-foundation
WordPress boilerplate with Composer, easier configuration, and an improved folder structure
Installs: 11
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Type:project
pkg:composer/heyblackmagic/wp-foundation
Requires
- php: >=8.0
- composer/installers: ^2.2
- oscarotero/env: ^2.1
- roots/bedrock-autoloader: ^1.0
- roots/bedrock-disallow-indexing: ^2.0
- roots/wordpress: 6.2
- roots/wp-config: 1.0.0
- roots/wp-password-bcrypt: 1.1.0
- vlucas/phpdotenv: ^5.5
- wpackagist-plugin/classic-editor: ^1.6
- wpackagist-plugin/duplicate-page: ^4.5
- wpackagist-plugin/redirection: ^5.3
Requires (Dev)
- roave/security-advisories: dev-latest
- squizlabs/php_codesniffer: ^3.7.1
README
Development from scratch
- Run
composer create-project heyblackmagic/wp-foundation ./PATHto create a WP instance with Composer. - In the directory where the project was installed, run
composer updateto install plugins and composer dependencies. - Then run
npm install && npm run buildto install node packages and generate the asset bundle. - With the terminal enter the
./public_htmldirectory and executevalet link VHOST_NAME, whereVHOST_NAMEis the name of the local domain. Example: "valet link foundation".
Development continuation from git pull
- Pull / Clone the project.
- Go to project folder and run the command
composer update,npm installandnpm run build. - Rename
env.exampleto.envand update the variables. - With the terminal enter the
./public_htmldirectory and executevalet link VHOST_NAME, whereVHOST_NAMEis the name of the local domain. Example: "valet link foundation".
Directory
.
├── LICENSE.md
├── README.md
├── composer.json
├── composer.lock
├── config
│ ├── application.php
│ └── environments
│ ├── development.php
│ └── staging.php
├── package-lock.json
├── package.json
├── phpcs.xml
├── postcss.config.js
├── public_html
│ ├── app
│ │ ├── mu-plugins
│ │ │ └── bedrock-autoloader.php
│ │ ├── plugins
│ │ ├── themes
│ │ │ └── foundation
│ │ │ ├── assets
│ │ │ │ └── img.jpg
│ │ │ ├── components
│ │ │ │ ├── component-footer.php
│ │ │ │ └── component-header.php
│ │ │ ├── footer.php
│ │ │ ├── front-page.php
│ │ │ ├── functions.php
│ │ │ ├── header.php
│ │ │ ├── home.php
│ │ │ ├── inc
│ │ │ │ ├── child-items.php
│ │ │ │ ├── helpers.php
│ │ │ │ ├── menu-items.php
│ │ │ │ ├── template-functions.php
│ │ │ │ ├── vite-constants.php
│ │ │ │ ├── vite-env.php
│ │ │ │ └── vite-scripts.php
│ │ │ ├── index.php
│ │ │ ├── meta
│ │ │ │ ├── favicon.php
│ │ │ │ └── fonts.php
│ │ │ ├── page.php
│ │ │ ├── snippets
│ │ │ └── style.css
│ │ └── uploads
│ ├── index.php
│ └── wp-config.php
├── src
│ ├── js
│ │ └── app.js
│ ├── public
│ └── scss
│ ├── abstracts
│ │ ├── _mixins.scss
│ │ ├── _variables.scss
│ │ └── index.scss
│ ├── app.scss
│ ├── base
│ │ ├── _buttons.scss
│ │ ├── _helpers.scss
│ │ ├── _images.scss
│ │ ├── _reset.scss
│ │ ├── _root.scss
│ │ ├── _typography.scss
│ │ └── index.scss
│ ├── components
│ │ └── index.scss
│ ├── snippets
│ │ └── index.scss
│ ├── templates
│ │ └── index.scss
│ └── vendor
│ └── index.scss
├── templates -> public_html/app/themes/foundation
├── vite.config.js
└── wp-cli.yml