PHP Package: laminas/laminas-router

Laminas Router is a powerful PHP library for routing requests in web applications, providing flexibility and performance.

Current Version: 3.14.0
Last Updated: 2024-10-11
PHP Requirement: >=7.1
Dependencies: laminas/laminas-escaper, laminas/laminas-http, laminas/laminas-mvc, psr/http-message
⚠️ To ensure full functionality, the above dependencies might be required.

Package Description

Laminas Router is a versatile PHP routing library designed to efficiently handle URL routing in web applications. With advanced features like route matching and parameter handling, it offers developers a robust solution for managing application routes effectively.

🔗 View on GitHub

Download Latest Version: 3.14.0

Download Download v3.14.0

Code Integration Example

Make sure to include the correct namespace and class paths for proper usage.

<?php

// Example from PHPlibraries.com
require_once 'libs/laminas/laminas-router/3.14.0/autoload.php';

use Laminas\Router\Http\Literal;
use Laminas\Router\Http\Segment;
use Laminas\Router\Http\TreeRouteStack;
use Laminas\Escaper\Escaper;
use Laminas\Http\PhpEnvironment\Request;
use Laminas\Http\PhpEnvironment\Response;
use Laminas\Mvc\Application;
use Psr\Http\Message\ServerRequestInterface;


$obj = new Laminas\Router\Http\Literal();
echo "✅ Example created successfully.";

?>

We aim to make using PHP packages easier without Composer. If something doesn't work, let us know — we'll fix it promptly.