A few of you have been asking about some of the Known dev tools that I use.

Well, I’ve been writing them as I go, and they’re a little bit dotted around, but since moving to composer I’ve been trying to link them up a bit.

Known Dev Scripts

The main dev scripts that I’ve been using are here. Requiring this package will also fetch the language tools scripts and the PHPCS code formatter config.

All of these are already included in the Known checkout in the vendor directory, if you’re checking out from git, and composer installing the dev dependencies (default).

composer require mapkyca/known-dev-scripts --dev

Console Tools

Next are a set of console tools that I’ve built up over time which give me some ability to nudge data around, and to get various dumps of raw data.

They’re dotted around in their own repos, and can be installed individually, but for convenience you can grab them all in one go:

composer require mapkyca/known-console-tools --dev

It goes without saying that these should not be installed on a production system – with great power, and all that.

Enjoy!

» Visit the project on Github...

Just a quick one, I’ve just updated the Known dev tools with a new script – plugin.php.

There’s currently only one function available enable-composer which, following my last post, provides a handy script for making your plugin composer installable.

Run the script, passing it the repository you’ve saved it as (so that the script can set the packagist headers correctly), and you’ll get an updated / new composer.json with all the appropriate values set.

You can optionally set whether the plugin is a straight plugin, theme or console plugin (known-plugin is default). You can also target directories other than the current directory, although realistically you’re never really going to run it from any other directory.

Enjoy!

» Visit the project on Github...

Just a quick one.

I’ve added a library, which hopefully will help Known development. I’ll be adding to this library as I go, but for now there’s a version manipulation tool.

I got sick of modifying version details in the various files related to Known and their plugins, so I wrote a quick tool.

version.php will allow you to bump patch, minor and major numbers, as well as maintain the build number.

I’m probably going to be running this from a commit script from now on. Hopefully this will be of some use to you!

» Visit the project on Github...