wp-launchpad / launchpad
Framework to create a modern PHP plugin in no time
Installs: 125
Dependents: 0
Suggesters: 0
Security: 0
Stars: 22
Watchers: 4
Forks: 0
Open Issues: 29
Type:project
Requires
- php: >=7.0
- composer/installers: ^1.0 || ^2.0
Requires (Dev)
- php: ^7 || ^8
- brain/monkey: ^2.0
- brianhenryie/strauss: ^0.14.0
- dealerdirect/phpcodesniffer-composer-installer: ^0.7.0
- mnsami/composer-custom-directory-installer: ^2.0
- phpcompatibility/phpcompatibility-wp: ^2.0
- phpunit/phpunit: ^7.5 || ^8 || ^9
- roave/security-advisories: dev-master
- wp-coding-standards/wpcs: ^2
- wp-launchpad/build: ^0.0
- wp-launchpad/cli: ^1.0
- wp-launchpad/cli-installer: ^0.0
- wp-launchpad/core: ^v0.3.0
- wp-launchpad/launchpad-phpstan: ^0.0
- wp-launchpad/take-off: ^1.0
- wp-media/phpunit: ^3.0
- 3.1.x-dev
- v3.0.0
- v1.x-dev
- v1.0.5
- v1.0.4
- v1.0.3
- v1.0.2
- v1.0.1
- v1.0.0
- v0.0.2
- v0.0.1
- dev-update-3.0.0
- dev-doc/35-update-doc-3.0.0
- dev-feature/test-ci
- dev-fix/33-add-wp-env
- dev-fix/32-fix-phpcs
- dev-doc/11-build-first-plugin
- dev-doc/migrating-plugin-to-launchpad
- dev-doc/improve-index
- dev-test/add-mocking-library
- dev-wiki/add-new-subscribers-doc
- dev-feature/upgrade-protecting-dependencies
- dev-feature/upgrade-tests
- dev-main
This package is auto-updated.
Last update: 2024-11-11 20:18:58 UTC
README
Launchpad is a framework for WordPress plugin that allows you to create a modern PHP plugin in no time.
Install
You create a new project with the following command composer create-project wp-launchpad/launchpad my-plugin
.
Then you will have to run the script bin/generator
to generate the project.
Class generator
This framework comes with a class generator that will make you save ton of time while developing new
classes to use it you can run the following command bin/generator initialize
.
With this commandline the following command are available:
initialize
: Initialize the project.subscriber
: Generate a subscriber file and attach it to the project.provider
: Generate a service provider file and attach it to the project.test
: Generate a test file.fixture
: Generate a fixture file and attach it to the project.build
: Generate an optimized artifact for the plugin.
Testing
This framework offers an architecture that makes testing your code simple and time efficient.
For every test you will be able to fast generate new test cases with the fixtures. You will be also able to mock unit tests quickly using Mockery and Brain Monkey. Finally, the subscriber architecture will make it easier for you to create integration tests for your code.
Modules
Multiple modules are available to allow faster development on specific tasks: