PHPackages                             lachie4145/yaml-router - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. lachie4145/yaml-router

ActiveComposer-plugin[HTTP &amp; Networking](/categories/http)

lachie4145/yaml-router
======================

A lightweight YAML-configured HTTP router for PHP projects.

v0.1.1(1mo ago)02MITPHPPHP &gt;=8.1

Since Apr 30Pushed 1mo agoCompare

[ Source](https://github.com/lachie4145/yaml-router)[ Packagist](https://packagist.org/packages/lachie4145/yaml-router)[ Docs](https://github.com/lachie4145/yaml-router)[ RSS](/packages/lachie4145-yaml-router/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (3)Versions (3)Used By (0)

YamlRouter
==========

[](#yamlrouter)

A lightweight YAML-configured HTTP router for PHP projects.

Define your routes in a `routes.yaml` file and let YamlRouter handle matching, dispatching, middleware, and more — no framework required.

Requirements
------------

[](#requirements)

- PHP 8.1+
- `symfony/yaml` ^7.0 (installed automatically)

Installation
------------

[](#installation)

```
composer require lachie4145/yaml-router
```

After install, a `routes.example.yaml` file is copied to your project root as a reference.

Quick Start
-----------

[](#quick-start)

```
