Skip to content

A fully structured WordPress Plugin.

Notifications You must be signed in to change notification settings

Apiki/wpsteak-plugin

This branch is 1 commit ahead of master.

Folders and files

NameName
Last commit message
Last commit date
May 7, 2020
May 7, 2020
Apr 3, 2019
May 5, 2020
May 7, 2020
May 5, 2020
Feb 13, 2020
Jan 8, 2019
Jan 8, 2019
Apr 23, 2020
May 7, 2020
May 5, 2020
May 5, 2020
May 7, 2020
Jan 8, 2019
Apr 7, 2020
May 7, 2020
May 25, 2021
May 25, 2021
Jan 8, 2019
May 5, 2020
Nov 20, 2022
May 5, 2020
Feb 13, 2020
May 5, 2020
Jan 31, 2019
May 7, 2020
May 7, 2020
Feb 6, 2020
May 5, 2020
Nov 20, 2022

Repository files navigation

WP Steak Build Status Scrutinizer Code Quality Code Coverage

Features

  • All advantages from WPSteak
  • Dependency injection container;
  • Ready for unit tests with PHPUnit;
  • PHP CodeSniffer configured with WordPress Coding Standards;
  • Wonderful resources processing configuration extracted from wpemerge-theme;
  • PHP PSR-4 autoloading for all your source code and tests;

Requirements

  • PHP >= 7.4
  • Composer

Quickstart

  1. Browse to wp-content/plugins.
  2. Run composer create-project apiki/wpsteak-plugin your-plugin-name.

Directory structure

.
├── dist/                            # Bundles, optimized images etc.
├── languages/                       # Language files.
├── resources/                       # Build process configuration, Scripts, Styles, etc.
├── src/                             # PSR-4 autoloaded classes.
│   ├── Entities/                    # Classes for using on data mapper.
│   │   ├── Categories.php
│   │   ├── Category.php
│   │   ├── ExampleCategory.php
│   │   ├── Example.php
│   │   ├── Examples.php
│   │   ├── Page.php
│   │   ├── Post.php
│   │   ├── Posts.php
│   │   ├── Tag.php
│   │   └── Tags.php
│   ├── Providers/                   # Your hooks declarations.
│   │   ├── Assets
│   │   │   ├── Admin.php
│   │   │   ├── Editor.php
│   │   │   ├── Login.php
│   │   │   └── Theme.php
│   │   ├── Example
│   │   │   ├── PostMeta.php
│   │   │   └── PostType.php
│   │   └── ExampleCategory
│   │       └── Taxonomy.php
│   ├── Repositories/                # Where you put your data handle (includes API).
│   │   ├── Category.php
│   │   ├── Example.php
│   │   ├── Page.php
│   │   ├── Post.php
│   │   └── Tag.php
│   ├── Services/                    # Where your business logic goes on.
│   └── Widgets/                     # Widget classes.
├── tests/                           # PHP Unit tests.
├── views/                           # View files used for metaboxes, shortcodes, etc.
├── config.json.dist
├── config.php                       # Where your providers and services providers will be loaded.
└── wpsteak.php                      # Bootstrap plugin.