PHPackages                             suomato/luna - 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. suomato/luna

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

suomato/luna
============

Command-line interface for Base Camp theme

v1.3.0(7y ago)84.2k↓66.7%31MITPHPPHP ^7.0

Since Sep 13Pushed 3y ago1 watchersCompare

[ Source](https://github.com/suomato/luna)[ Packagist](https://packagist.org/packages/suomato/luna)[ RSS](/packages/suomato-luna/feed)WikiDiscussions master Synced yesterday

READMEChangelog (10)Dependencies (2)Versions (9)Used By (1)

LUNA CLI
========

[](#luna-cli)

> Command-line interface for Base Camp theme.

Commands
--------

[](#commands)

- [Make Custom Post Type](#make-custom-post-type)
- [Make Custom Taxonomy](#make-custom-taxonomy)
- [Make Route](#make-route)
- [Make Shortcode](#make-shortcode)
- [Make Menu Page](#make-menu-page)

#### Make Custom Post Type

[](#make-custom-post-type)

> This Command helps you to create a new Custom Post Type very fast.

```
php luna make:custom-post-type {name}

```

> The argument is singular form. if noun have irregular plural which do not behave in standard way(singular+s), exception can be defined by plural option e.g.

```
php luna make:custom-post-type person --plural=people

```

> The new file is created to `/app/config/wp/custom-post-types/{name}.php`

#### Make Custom Taxonomy

[](#make-custom-taxonomy)

> This Command helps you to create a new Custom Taxonomy very fast.

```
php luna make:custom-taxonomy {name}

```

> The argument is singular form. if noun have irregular plural which do not behave in standard way(singular+s), exception can be defined by plural option e.g.

```
php luna make:custom-taxonomy country --plural=countries

```

> The new file is created to `/app/config/wp/custom-taxonomies/{name}.php`

#### Make Route

[](#make-route)

> This Command helps you to create a new route for WordPress API clearer and faster way.

```
php luna make:route {name}

```

> The new file is created to `/app/config/wp/routes/{name}.php`. The created file comes with the well documented boilerplate.

#### Make Shortcode

[](#make-shortcode)

> This Command helps you to create a new shortcode with very clean boilerplate.

```
php luna make:shortcode {name}

```

> The new file is created to `/app/config/wp/shortcodes/{name}.php`.

##### Example

[](#example)

Run command:

```
php luna make:shortcode LuckyNumber

```

Then define some data

```
    /**
     * @var string Shortcode name
     */
    protected $shortcode = 'lucky_number';

    /**
     * @var array|string An associative array of attributes
     */
    protected $attributes = [
        'number' => 7,
    ];

    /**
     * Return template of shortcode
     *
     * @param $attr An associative array of attributes
     * @param $content Enclosed content
     *
     * @return mixed
     */
    protected function template($attr, $content)
    {
        return 'This is my lucky number: ' . $attr['number'];
    }

```

> Now shortcode `[lucky_number]` generates `This is my lucky number: 7` and `[lucky_number number="13"]` generates `This is my lucky number: 13`

> It is also possible to use power of Timber. In template function you can return Timber view instead of string like this:

```
// resources/views/shortcodes/lucky-number.twig

This is my lucky number: {{ number }}

******************************************************************

// app/config/wp/shortcodes/LuckyNumber.php

protected function template($attr, $content)
{
    return \Timber::compile('shortcodes/lucky-number.twig', $attr);
}

```

#### Make Menu Page

[](#make-menu-page)

> This Command helps you to create a new Menu Page or Submenu Page to wp-admin navigation.

```
php luna make:menu-page {name}

```

> This command will create a new MenuPage class in `/app/config/wp/menu-pages/{name}.php`. The generated file will include the Menu Page properties. Submenu Page could be created by:

```
php luna make:menu-page {name} --submenu

```

> A new SubMenuPage class will be generated in `/app/config/wp/submenu-pages/{name}.php`

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 95% 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 ~45 days

Recently: every ~62 days

Total

8

Last Release

2899d ago

### Community

Maintainers

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

---

Top Contributors

[![suomato](https://avatars.githubusercontent.com/u/9315631?v=4)](https://github.com/suomato "suomato (19 commits)")[![VincentPeters](https://avatars.githubusercontent.com/u/400738?v=4)](https://github.com/VincentPeters "VincentPeters (1 commits)")

---

Tags

basecampcliwordpress

### Embed Badge

![Health badge](/badges/suomato-luna/health.svg)

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

###  Alternatives

[laravel/framework

The Laravel Framework.

34.8k543.8M20.1k](/packages/laravel-framework)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.6M574](/packages/shopware-core)[open-dxp/opendxp

Content &amp; Product Management Framework (CMS/PIM)

9421.6k61](/packages/open-dxp-opendxp)

PHPackages © 2026

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