Download the PHP package shel/yaml-splitter without Composer

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

Neos CMS node type YAML file splitter and reorganizer

Features:

Installation

Recommended

Download the Phar version of the latest release. You can find it after the individual change log in the Assets section.

Afterwards you should make the file executable by running

Now you can follow the usage examples below.

Via composer

Add this tool as dependency to your project via

Or install the package globally via

Afterwards you can run the commands in your project by prefixing the usage examples like this:

Usage

List commands

./yaml-splitter.phar list

Show options for split command

./yaml-splitter.phar help split

Split a file

./yaml-splitter.phar split [options] [--] <path> [<output-path>]

This will copy each node type found in the input file into a new file. Each new file be have a name like NodeTypes.MyNodeType.yaml.

Additionally, each filename will get a prefix after NodeTypes like Document, Content or Mixin based on the name of the actual node type.

Also, when the option package-key is provided, node types matching the package key will have the standard naming and others will get names like NodeTypes.Override.SomeOtherNodeType.yaml.

Options

Example

Reorganize the nodetypes in a Configuration folder into Neos 7.2+ nodetype subfolders

With Neos 7.2 it's possible to organize nodetypes into separate folders than Configuration. It also allows you to use subfolders.

With the following command you can move all NodeTypes.*.yaml from a Configuration folder into another folder. They will automatically be put into subfolders based on their naming scheme.

So for example you have the following files in your Configuration folder of your site package:

Now you run the reorganize command:

After you execute the command you will have the following structure:

Note: If you still have multiple nodetypes inside one file, it's recommended to first run the split command and then reorganize.

Contributing

The tool is based on the Symfony console component.

Building the phar

First install box.

Then run

composer run compile 

All versions of yaml-splitter with dependencies

PHP Build Version
Package Version
Requires php Version >=7.3
symfony/console Version ^5.1
symfony/yaml Version ^5.1
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 shel/yaml-splitter contains the following files

Loading the files please wait ....