# Simple URI Template
A simple URI templating language with parsers to convert the template to a regular expression and to a complete URI.

## Installation

`composer install toxygene/simple-uri-template`

## Language Definition
```
   TEMPLATE ::= ( PLACEHOLDER | LITERAL ) *
PLACEHOLDER ::= "{" IDENTIFIER "}"
 IDENTIFIER ::= [a-zA-Z][a-zA-Z0-9]*
    LITERAL ::= [^{}]+
```

## Regex Examples
`/one/{two}/three` => `#^/one/(?P<two>.+?)/three$#`

## URI Examples
`/one/{two}/three` + ```['two' => 2]``` => `/one/2/three`

# Simple URI Template
A simple URI templating language with parsers to convert the template to a regular expression and to a complete URI.

## Installation

`composer install toxygene/simple-uri-template`

## Language Definition
```
   TEMPLATE ::= ( PLACEHOLDER | LITERAL ) { TEMPLATE } *
PLACEHOLDER ::= "{" IDENTIFIER "}"
 IDENTIFIER ::= [a-zA-Z][a-zA-Z0-9]*
    LITERAL ::= [^{}]+
```

## Regex Examples
`/one/{two}/three` => `#^/one/(?P<two>.+?)/three$#`

## URI Examples
`/one/{two}/three` + ```['two' => 2]``` => `/one/2/three`

Update to EBNF language definition
Update to EBNF language definition