apiki/wpsteak-plugin
A fully structured WordPress plugin.
Installs: 23
Dependents: 0
Suggesters: 0
Stars: 4
Watchers: 5
Forks: 1
Open Issues: 3
Type:wordpress-plugin
Requires
- apiki/wpsteak: 0.1.1
- composer/installers: 1.6.0
- league/container: 3.2.2
- php: >=7.1
Requires (Dev)
- dealerdirect/phpcodesniffer-composer-installer: 0.5.0
- mockery/mockery: 1.2.2
- phpcompatibility/phpcompatibility-wp: 2.0.0
- phpunit/phpunit: 8.0.6
- squizlabs/php_codesniffer: 3.4.1
- wp-coding-standards/wpcs: 2.0.0
- dev-master
- v2.1.1
- v2.1.0
- v2.0.0
- v1.0.1
- v1.0.0
- v0.2.0
- v0.1.0
- dev-renovate/babel-monorepo
- dev-renovate/phpunit-phpunit-8.x
- dev-renovate/wp-coding-standards-wpcs-2.x
- dev-develop
- dev-renovate/mockery-mockery-1.x
- dev-renovate/stylelint-12.x
- dev-renovate/squizlabs-php_codesniffer-3.x
- dev-renovate/css-loader-3.x
- dev-renovate/eslint-6.x
- dev-renovate/autoprefixer-9.x
- dev-renovate/eslint-plugin-react-7.x
- dev-renovate/style-loader-1.x
- dev-renovate/file-loader-5.x
- dev-elvishp2006-patch-1
README
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.1
- Composer
Quickstart
- Browse to
wp-content/plugins
. - 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. │ │ ├── Category.php │ │ ├── Example.php │ │ ├── Page.php │ │ ├── Post.php │ │ └── Tag.php │ ├── Providers/ # Your hooks declarations. │ │ ├── Example/ │ │ │ ├── PostMeta.php │ │ │ └── PostType.php │ │ └── Assets.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.