PHPackages                             arraydev/wpkit - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [CLI &amp; Console](/categories/cli)
4. /
5. arraydev/wpkit

ActiveLibrary[CLI &amp; Console](/categories/cli)

arraydev/wpkit
==============

CLI support for WP Tool Kit.

v1.0.6(1y ago)013MITPHP

Since Apr 11Pushed 3w ago1 watchersCompare

[ Source](https://github.com/bogdanovandreycode/wpkit)[ Packagist](https://packagist.org/packages/arraydev/wpkit)[ RSS](/packages/arraydev-wpkit/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (2)Versions (23)Used By (0)

wpkit
=====

[](#wpkit)

`wpkit` is a CLI toolkit for creating WordPress plugins that use `arraydev/wptoolkit`.

It scaffolds plugin structure, Composer metadata, PHPUnit tests, build settings, and common WordPress runtime classes such as REST routes, admin pages, meta boxes, custom post types, hooks, shortcodes, widgets, and AJAX handlers.

Command Overview
----------------

[](#command-overview)

Run the current command list:

```
php wpkit list
```

Project command groups:

- `plugin:*`: create plugins from interactive answers or JSON config.
- `make:*` and `route:create`: generate runtime classes inside an existing plugin.
- `language:*`, `locale:*`, and `translation:*`: manage PHP translation dictionaries for `WpToolKit\Manager\LocaleManager`.
- `project:build`: build production artifacts from `.buildignore` and `.build.json`.
- `toolkit:namespace-update`: rewrite `WpToolKit` namespace references.
- `lint:check`: run recursive PHP syntax checks.
- `ai:*`: local workspace helpers for status, diff, search, file IO, checks, and indexing.

Available project commands:

GroupCommandsPlugin creation`plugin:create`, `plugin:create-from-file`, `plugin:init-config`Scaffolds`make:route`, `make:param`, `make:action`, `make:ajax`, `make:cron`, `make:filter`, `make:admin-page`, `make:page`, `make:metabox`, `make:post`, `make:taxonomy`, `make:shortcode`, `make:widget`, `make:wpbakery-element`, `make:wpbakery`, `route:create`Feature/database`make:feature`, `make:model`, `make:migration`Documentation`docs:export`Translations`language:add`, `language:remove` / `language:delete`, `locale:add` / `translation:add`, `locale:update` / `translation:update`, `locale:remove` / `locale:delete` / `translation:remove` / `translation:delete`, `locale:show` / `translation:show`Build`project:build`Toolkit maintenance`toolkit:namespace-update`Linting`lint:check`AI helpers`ai:status`, `ai:diff`, `ai:find`, `ai:read`, `ai:write`, `ai:check`, `ai:index-build`, `ai:index-update`, `ai:index-show`, `ai:index-remove`See [Command Reference](docs/COMMANDS.md) for every command, argument, option, and alias.

Quick Start
-----------

[](#quick-start)

Create a plugin interactively:

```
php wpkit plugin:create
```

Create a plugin from JSON:

```
php wpkit plugin:init-config
php wpkit plugin:create-from-file plugin-config.json
```

Create a plugin with demo scaffolds:

```
php wpkit plugin:create --demo
php wpkit plugin:create-from-file plugin-config.json --demo
```

Or set `"demo": true` in `plugin-config.json`.

Create a Vue/PrimeVue plugin:

```
php wpkit plugin:create --vue
php wpkit plugin:create-from-file plugin-config.json --primevue --primeicons --prime-theme=aura
```

Create an integrated feature or database model:

```
php wpkit make:feature Book
php wpkit make:model Order --migration
```

Export local documentation for an AI agent:

```
php wpkit docs:export
```

Generated Plugin
----------------

[](#generated-plugin)

A new plugin includes:

- main plugin file with WordPress headers
- `src/Boot.php` and `src/Main.php`
- Composer PSR-4 autoloading
- PHPUnit setup with `tests/ExampleTest.php`
- `.buildignore`
- `.build.json`
- default folders for admin, hooks, REST, post types, shortcodes, services, widgets, views, config, assets, and translations
- automatic migration bootstrapping and optional Vue/Vite assets

Translation Commands
--------------------

[](#translation-commands)

`wpkit` can manage PHP-file dictionaries used by `WpToolKit\Manager\LocaleManager`.

```
php wpkit language:add en
php wpkit language:remove en

php wpkit locale:add en payment.maib_payment "Payment via MAIB"
php wpkit locale:update en payment.maib_payment "MAIB payment"
php wpkit locale:remove en payment.maib_payment
php wpkit locale:show payment.maib_payment
```

The default base directory is `languages`. Use `--base=resources/lang` for a custom translation root. Use `--dictionary=request.entity.passenger` when the address is only a key inside a nested dictionary.

When demo mode is enabled, wpkit also generates example classes for:

- custom post type
- meta box
- admin page
- REST route
- REST param
- AJAX handler
- action hook
- shortcode
- widget
- view mapping and view file

Build
-----

[](#build)

Run:

```
php wpkit project:build
```

Build behavior is configured by `.build.json`.

The full pipeline can:

1. Copy project files into `build/` while respecting `.buildignore`.
2. Always copy `composer.json` and `composer.lock`.
3. Never copy the source `vendor` folder.
4. Run Composer install with dev dependencies.
5. Run tests.
6. Stop the build when tests fail.
7. Replace dev vendor with production `composer install --no-dev`.
8. Keep, remove, or scope vendor into `vendor_scoped`.
9. Create a ZIP archive.
10. Optionally remove the unzipped build folder.

See [Build](docs/BUILD.md) for the full config reference.

Documentation
-------------

[](#documentation)

- [Command Reference](docs/COMMANDS.md)
- [Plugin Creation](docs/PLUGIN_CREATION.md)
- [Scaffolds](docs/SCAFFOLDS.md)
- [Build](docs/BUILD.md)
- [AI Context](docs/AI_CONTEXT.md)

For AI assistants, start with [AI Context](docs/AI_CONTEXT.md), then load only the skill file that matches the task from `docs/ai-skills/`.

###  Health Score

35

—

LowBetter than 77% of packages

Maintenance71

Regular maintenance activity

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~22 days

Recently: every ~10 days

Total

22

Last Release

22d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c92539d2bf56208ae3454e8f714c8fafd2ad9b512fa49df7f76e71e7e860ec7e?d=identicon)[ArrayDev](/maintainers/ArrayDev)

---

Top Contributors

[![bogdanovandreycode](https://avatars.githubusercontent.com/u/30864828?v=4)](https://github.com/bogdanovandreycode "bogdanovandreycode (52 commits)")

### Embed Badge

![Health badge](/badges/arraydev-wpkit/health.svg)

```
[![Health](https://phpackages.com/badges/arraydev-wpkit/health.svg)](https://phpackages.com/packages/arraydev-wpkit)
```

###  Alternatives

[laravel/sail

Docker files for running a basic Laravel application.

1.9k212.4M1.5k](/packages/laravel-sail)[friendsoftypo3/content-blocks

TYPO3 CMS Content Blocks - Content Types API | Define reusable components via YAML

103574.3k69](/packages/friendsoftypo3-content-blocks)[jolicode/castor

A lightweight and modern task runner. Automate everything. In PHP.

55344.7k5](/packages/jolicode-castor)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.8M674](/packages/shopware-core)[whatsdiff/whatsdiff

See what's changed in your project's dependencies

761.4k](/packages/whatsdiff-whatsdiff)[perplorm/perpl

Perpl is an improved and still maintained fork of Propel2, an open-source Object-Relational Mapping (ORM) for PHP.

2414.4k](/packages/perplorm-perpl)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
