PHPackages                             websonette/web-application - 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. websonette/web-application

ActiveLibrary

websonette/web-application
==========================

Framework-independent page context, breadcrumbs, and shared web application state.

v0.1.0(yesterday)03↑2900%MITPHPPHP ^8.3CI passing

Since Aug 27Pushed todayCompare

[ Source](https://github.com/Websonette/web-application)[ Packagist](https://packagist.org/packages/websonette/web-application)[ RSS](/packages/websonette-web-application/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (2)Versions (2)Used By (0)

Websonette Web Application
==========================

[](#websonette-web-application)

Framework-independent request-scoped state shared by Websonette application adapters.

> The package is currently being prepared and does not have a stable public API yet.

Scope
-----

[](#scope)

The package contains data and operations only. It does not depend on Nette, Latte, React, HTML, sessions, or a particular response format.

- `Websonette\WebApplication\Breadcrumbs\Breadcrumbs` manages an ordered breadcrumb trail identified by URL.
- `Websonette\WebApplication\Page\PageContext` describes the current page and exposes a serializable SPA-friendly contract.

Rendering belongs to adapter packages such as `websonette/latte-application`. A future SPA adapter may serialize the same objects into an API response.

Breadcrumbs
-----------

[](#breadcrumbs)

```
use Websonette\WebApplication\Breadcrumbs\Breadcrumbs;

$breadcrumbs = new Breadcrumbs();
$breadcrumbs->add('Homepage', '/', 'home', 'Introduction');
$breadcrumbs->add('Products', '/products', 'box');
```

Page context
------------

[](#page-context)

```
use Websonette\WebApplication\Page\PageContext;

$page = (new PageContext())
    ->setTitle('Products')
    ->setHeading('Our products')
    ->setDescription('Product overview')
    ->setCanonicalUrl('https://example.com/products')
    ->addAlternateUrl('cs', 'https://example.com/cs/produkty')
    ->setProperty('og:title', 'Products');
```

Both services provide `toArray()` output suitable for a framework-specific JSON response.

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

[](#installation)

After the first release and Packagist registration:

```
composer require websonette/web-application
```

License
-------

[](#license)

Websonette Web Application is licensed under the MIT License.

###  Health Score

39

—

LowBetter than 84% of packages

Maintenance100

Actively maintained with recent releases

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/14817902?v=4)[kleinpeter](/maintainers/kleinpeter)[@kleinpeter](https://github.com/kleinpeter)

---

Top Contributors

[![kleinpeter](https://avatars.githubusercontent.com/u/14817902?v=4)](https://github.com/kleinpeter "kleinpeter (4 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/websonette-web-application/health.svg)

```
[![Health](https://phpackages.com/badges/websonette-web-application/health.svg)](https://phpackages.com/packages/websonette-web-application)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
