Download the PHP package suomato/luna without Composer
On this page you can find all versions of the php package suomato/luna. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Package luna
Short Description Command-line interface for Base Camp theme
License MIT
Informations about the package luna
LUNA CLI
Command-line interface for Base Camp theme.
Commands
- Make Custom Post Type
- Make Custom Taxonomy
- Make Route
- Make Shortcode
- Make Menu Page
Make Custom Post Type
This Command helps you to create a new Custom Post Type very fast.
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.
The new file is created to
/app/config/wp/custom-post-types/{name}.php
Make Custom Taxonomy
This Command helps you to create a new Custom Taxonomy very fast.
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.
The new file is created to
/app/config/wp/custom-taxonomies/{name}.php
Make Route
This Command helps you to create a new route for WordPress API clearer and faster way.
The new file is created to
/app/config/wp/routes/{name}.php
. The created file comes with the well documented boilerplate.
Make Shortcode
This Command helps you to create a new shortcode with very clean boilerplate.
The new file is created to
/app/config/wp/shortcodes/{name}.php
.
Example
Run command:
Then define some data
Now shortcode
[lucky_number]
generatesThis is my lucky number: 7
and[lucky_number number="13"]
generatesThis 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:
Make Menu Page
This Command helps you to create a new Menu Page or Submenu Page to wp-admin navigation.
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:A new SubMenuPage class will be generated in
/app/config/wp/submenu-pages/{name}.php