2017 © Pedro Peláez
 

opus-package journey

Journey for the Hiraeth Nano-Framework

image

hiraeth/journey

Journey for the Hiraeth Nano-Framework

  • Thursday, February 22, 2018
  • by mattsah
  • Repository
  • 1 Watchers
  • 0 Stars
  • 79 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 10 Versions
  • 3 % Grown

The README.md

Journey is a wrapper and set of extensions for the well known FastRoute. It provides thin wrapper which extends FastRoute's native abilities by adding an entry point for dependency resolution, parameter matching shorthands, transformers, and link generation., (*1)

Installation

composer require hireath/journey

The journey.jin configuration will be automatically copied to your config directory via opus., (*2)

Delegates

No delegates are included in this package., (*3)

Providers

No providers are included in this package., (*4)

Configuration

[journey]

group = ""

routes = {
    "/": "Hiraeth\\Journey\\WelcomeAction"
}

patterns = {
    "!": ".+",
    "#": "\\d+",
    "+": "[1-9][0-9]*",
    "c": "[a-z\\x7f-\\xff][a-z0-9\\x7f-\\xff]*",
    "m": "[a-z\\x7f-\\xff][a-z0-9\\x7f-\\xff]*"
}

transformers = {
    "!": "Hiraeth\\Journey\\StringTransformer"
}
Key Data Type Description
group string A prefix which will be appended to all routes in the section.
routes object A { key : value } list of routes to controller/actions.
patterns object A { key : value } list of parameter symbols to their regex patterns.
transformers object A { key : value } list of parameter symbols to their transformer classes.

The [journey] section is globally recognized, so it can be added to any configuration file in the system to add additional routes, patterns, or transformers. Each [journey] section is understood as it's own distinct group so all routes within that section will be prefixed by the group setting, however, at a global level all patterns, transformers, and routes are added to the same instance, so conflicts are possible., (*5)

usage

The hiraeth/jouney package provides middleware as its primary point of integration:, (*6)

Middleware Works With
Hiraeth\Journey\RelayMiddleware hiraeth/relay

The Versions

22/02 2018

dev-master

9999999-dev

Journey for the Hiraeth Nano-Framework

  Sources   Download

MIT

The Requires

 

by Matthew J. Sahagian

22/02 2018

1.3.1

1.3.1.0

Journey for the Hiraeth Nano-Framework

  Sources   Download

MIT

The Requires

 

by Matthew J. Sahagian

14/02 2018

1.3.0

1.3.0.0

Journey for the Hiraeth Nano-Framework

  Sources   Download

MIT

The Requires

 

by Matthew J. Sahagian

01/11 2017

1.2.0

1.2.0.0

Journey for the Hiraeth Nano-Framework

  Sources   Download

MIT

The Requires

 

by Matthew J. Sahagian

23/08 2017

1.1.0

1.1.0.0

Journey for the Hiraeth Nano-Framework

  Sources   Download

MIT

The Requires

 

by Matthew J. Sahagian

01/07 2017

1.0.4

1.0.4.0

Journey for the Hiraeth Nano-Framework

  Sources   Download

MIT

The Requires

 

by Matthew J. Sahagian

01/07 2017

1.0.3

1.0.3.0

Journey for the Hiraeth Nano-Framework

  Sources   Download

MIT

The Requires

 

by Matthew J. Sahagian

01/07 2017

1.0.2

1.0.2.0

Journey for the Hiraeth Nano-Framework

  Sources   Download

MIT

The Requires

 

by Matthew J. Sahagian

27/06 2017

1.0.1

1.0.1.0

Journey for the Hiraeth Nano-Framework

  Sources   Download

MIT

The Requires

 

by Matthew J. Sahagian

08/06 2017

1.0.0

1.0.0.0

Journey for the Hiraeth Nano-Framework

  Sources   Download

MIT

The Requires

 

by Matthew J. Sahagian