cwmoss/kuddle2

There is no license information available for the latest version (dev-main) of this package.

Maintainers

Package info

github.com/cwmoss/kuddle2

pkg:composer/cwmoss/kuddle2

Transparency log

Statistics

Installs: 2

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

dev-main 2026-08-02 13:29 UTC

This package is auto-updated.

Last update: 2026-08-02 13:37:04 UTC


README

https://kdl.dev/

this is a dependency free kdl 2 parser for php. fully vibecoded by MAI-Code-1-Flash. at this stage the parser is not features complete and not specs compliant.

KDL is a small, pleasant document language with XML-like node semantics that looks like you're invoking a bunch of CLI commands! It's meant to be used both as a serialization format and a configuration language, much like JSON, YAML, or XML. It looks like this:

package {
  name my-pkg
  version "1.2.3"

  dependencies {
    // Nodes can have standalone values as well as
    // key/value pairs.
    lodash "^3.2.1" optional=#true alias=underscore
  }

  scripts {
    // "Raw" and dedented multi-line strings are supported.
    message """
      hello
      world
      """
    build #"""
      echo "foo"
      node -c "console.log('hello, world!');"
      echo "foo" > some-file.txt
      """#
  }

  // `\` breaks up a single node across multiple lines.
  the-matrix 1 2 3 \
             4 5 6 \
             7 8 9

  // "Slashdash" comments operate at the node level,
  // with just `/-`.
  /-this-is-commented {
    this entire node {
      is gone
    }
  }
}

specs: look at ./draft-marchan-kdl2.md

test

run tests with phpunit

./vendor/bin/phpunit tests/