title: Dynamic key=>value segments in Zend Router
body: <p>Need to achieve dynamic router param segmenting in Zend Router. The idea is: 
  have the url: <code>/route/:route/resource/:resource/:identifier</code>, with the following configuration: </p>
  
  <pre><code>    'orchestration.rest.dynamic-router' =&gt; array(
                  'type' =&gt; 'Segment',
                  'options' =&gt; array(
                      'route' =&gt; '/route/:route/resource/:resource[/:identifier]',
                      'defaults' =&gt; array(
                          'controller' =&gt; 'Controller',
                      ),
                  ),
              ),
  </code></pre>
  
  <p>Need to make it support n-number different key=>value router params in the following format: </p>
  
  <p><code>/route/:route/resource/:resource/:identifier/key1/value1/key2/value2/key3/value3</code></p>
  
  <p>The second problem is that this should work only if you have the optional :identifier parameter provided. </p>
  
  <p>This is what I've checked, but not sure how to achieve the goal: 
  <a href="https://docs.zendframework.com/zend-router/routing/#zend92router92http92segment" rel="nofollow noreferrer">https://docs.zendframework.com/zend-router/routing/#zend92router92http92segment</a></p>