wp-launchpad/launchpad 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

wp-launchpad/launchpad

最新稳定版本:v3.1.0

Composer 安装命令:

composer create-project wp-launchpad/launchpad

包简介

Framework to create a modern PHP plugin in no time

README 文档

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:

Module Description
Action scheduler Handle asynchronous code or code to execute later
BerlinDB A simple Database library
Logger A PSR-3 compatible logger
Uninstaller Set actions to be done on uninstall
Filesystem Interact with the filesystem
Front-end Create a front-end with Bud.js for your plug-in
Hook extractor Extract hooks from your plugin into a yaml file

统计信息

  • 总下载量: 184
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 35
  • 点击次数: 4
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 35
  • Watchers: 3
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-2.0-or-later
  • 更新时间: 2023-04-13