Download the PHP package imagewize/elayne-cli without Composer

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

Elayne CLI

Deprecated — This package is no longer maintained. All functionality has been absorbed into imagewize/pt-cli v2.0.0.

Commands are identical — pattern:create, layout:create, style:create, pattern:list — now alongside pt-cli check.

CLI scaffolding tool for Elayne, a WordPress block theme. Generates WordPress block pattern PHP files, layout patterns, and theme style variation JSON files interactively from pre-built templates.

Requirements

Installation

Or clone and install locally:

Shorter commands (optional)

Add these scripts to your theme's composer.json to avoid typing vendor/bin/elayne every time:

Then run composer pattern:list, composer pattern:create, composer layout:create, or composer style:create.

To use the bare elayne command from any project directory, add ./vendor/bin to your shell PATH:

After reloading your shell (source ~/.zshrc) you can run elayne pattern:list, elayne pattern:create, elayne layout:create, and elayne style:create directly.

Usage

List available templates, snippets, layouts, categories, and style presets

Scaffold a new pattern (interactive)

You will be prompted for pattern title, slug, category, template, keywords, and output directory. Use --with-style to also generate a companion CSS file, and --shell-only for an editor-first workflow (PHP header + paste marker only).

Scaffold a new layout pattern (interactive)

You will be prompted for pattern title, slug, layout type, category, keywords, and output directory. Use --shell-only for an editor-first workflow.

Example non-interactive usage:

Scaffold a new style variation (interactive)

You will be prompted for style name, vertical preset (or custom colors), and output directory.

Example non-interactive usage:

Non-interactive pattern creation

With --shell-only (editor-first workflow):

The --slug option accepts the full elayne/<slug> form or just the bare slug — the elayne/ prefix is stripped automatically.

Documentation

Detailed reference material is available in the docs/ directory:

Generated pattern file

The command writes a .php file to the output directory. Example output for a blank pattern:

After generation, add your block markup inside the file and flush the WordPress pattern cache.

License

GPL-2.0-or-later — see LICENSE.md for details.


All versions of elayne-cli with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0
symfony/console Version ^6.0|^7.0
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 imagewize/elayne-cli contains the following files

Loading the files please wait ...