Download the PHP package nikitaglobal/wptheme without Composer

On this page you can find all versions of the php package nikitaglobal/wptheme. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package wptheme

nikita.global WP theme

This package is to make wordpress theme development easier. I have created it for my needs, but it might be useful for you too.

Basic installation

  1. In installed and working wordpress create your theme folder in wp-content/themes.
  2. Run "composer require nikitaglobal/wptheme" in it.
  3. Run "sh vendor/nikitaglobal/wptheme/bin/mktheme" or copy vendor/mycooltheme/wptheme/toTheme files to your theme folder
  4. Rename theme.php.sample to theme.php and edit it.

theme.php

THEMEPREFIX is a basic constant. Can be almost any unique value of latin letters and numbers. Used for naming shortcodes, hooks, enqueuing styles and scripts. THEMEVERSION is current version of your theme. THEMESCRIPTS is an array of your js scripts used in theme. All paths are relative to your theme folder or absolute URI. THEMESTYLES same for your css. If style is prefixed with '@', it will be inlined. THEMEMENUS is an array of menu arrays, each menu is defined by id and label, see example below. TYPE_FIELDS is an array which defines custom fields for each post types. "plans" and "reviews" are in the given example below. The syntax is almost like here [https://docs.carbonfields.net/learn/fields/usage.html] SETTINGS_FIELDS is a similar array which defines basic theme settings. Like the contacts in header or footer. TEMPLATE_FIELDS is a similar array which defines custom fields for theme templates. Like price for product page.

Example:

Menus

Method Wptheme\Menu::items( 'topmenu' ) returns array of WP Objects for menu items for topmenu location. Also the object has extra keys:

Example:

Tags

For single post

NgTheme::tags()

All tags

NgTheme::get_all_tags()

nikita.global


All versions of wptheme with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.0
htmlburger/carbon-fields Version ^3.2
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package nikitaglobal/wptheme contains the following files

Loading the files please wait ....