Download the PHP package wordrobe/cli without Composer

On this page you can find all versions of the php package wordrobe/cli. 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 cli

Wordrobe is a Wordpress development boosting tool that combines the quickness of automated processes with the solidity of a structured workflow.

By taking charge of the most common operations concerning Wordpress themes development and by providing a well organized development model, it allows you to save time and to produce a better quality code with an eye towards modularity and maintainability.

Requirements

Installation

To install Wordrobe just run the following command at the root of your project:

Once installed, Wordrobe requires a simple initial configuration to fit in your project's structure so it can write and handle files at correct paths.

By running

a setup wizard will start and a wordrobe.json file will be automatically created at your project's root. It will look like this:

:bulb: In a standard Wordpress installation, "themes-path" will be "wp-content/themes".

Usage

Wordrobe exposes all its power of adding features to your Wordpress based application by the simplest way ever: just run the following command and enjoy the wizard:

Check the complete commands list to discover all supported features.

Fundamentals

Adding a new theme

One of the most basic but most important operations you deal with when you start a new Wordpress project, is the creation of a brand new theme. At this stage, many doubts about structure and files organization usually arise, specially when focus about code modularity and maintainability is required.

Wordrobe offers an optimized theme's file system that helps you to keep your code scoped and well organized, encouraging front-end/back-end separation, integration and reusability. For more information, check theme's in-depth documentation.

To create a new theme, simply run the command below and follow the wizard:

:bulb: Wordrobe supports multi-theme development, so if more than one theme will be added to your project, you will be asked which theme you want to deal with each time you'll run the add command.

Adding a page template

Page templates are one of the most commonly used ways to make an association between specific contents and layout. To let Wordrobe to create one for you, just run the following command:

The page template creation process let us to observe the first pillar of Wordrobe architecture: the controller/view pattern implementation. It's entrusted to Twig through the use of [Timber]() plugin by Upstatement and allows a perfect separation between front-end and back-end development.

For more information, check the controller/view pattern's in-depth documentation.

Adding a custom post-type

Another common operation in Wordpress theme development is the creation of custom post-types, aimed to handle project-specif content types. By the following command, Wordrobe comes in support for this goal too:

Along with the post-type registration code and the controller/view pattern implementation, the command above provides the scaffolding that allows Wordrobe to carry out its own architecture through the introduction of its second pillar: the entity/repository/dto framework.

It's inspired by Doctrine and you can learn more about it by reading its in-depth documentation.

More?

Check the example for more details and information about Wordrobe usage.


All versions of cli with dependencies

PHP Build Version
Package Version
Requires php Version ^7.2
symfony/console Version ^4.2
composer/composer Version ^1.8
timber/timber Version ^1.9
symfony/polyfill-iconv Version ^1.10
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 wordrobe/cli contains the following files

Loading the files please wait ....