PHPackages                             mpb-cal/web-sight - 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. [Framework](/categories/framework)
4. /
5. mpb-cal/web-sight

ActiveLibrary[Framework](/categories/framework)

mpb-cal/web-sight
=================

A website anti-framework for PHP.

v1.0.0(6y ago)019MITPHPPHP &gt;=5.3.0

Since Mar 10Pushed 5y ago1 watchersCompare

[ Source](https://github.com/mpb-cal/WebSight)[ Packagist](https://packagist.org/packages/mpb-cal/web-sight)[ RSS](/packages/mpb-cal-web-sight/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependenciesVersions (3)Used By (0)

WebSight
========

[](#websight)

A website anti-framework

Create a WebPage and pass it around, add stuff to it, then display it. CSS, JS, HEAD stuff, etc., can be added at any point.

To install:

`composer require "mpb-cal/web-sight >=1"`

To use:

```
namespace WebSight;

require_once __DIR__ . '/vendor/mpb-cal/web-sight/WebPage.php';

$webPage = new WebPage;
$webPage->setTitle( 'My Site' );
$webPage->addToHead( 'head stuff' );
$webPage->addStyleSheet( 'css/style.css' );
$webPage->addToBody( 'main body' );
print $webPage->getOutput();

```

HTML wrappers help you write HTML. It guarantees that your tags are closed and nested properly, without having to write the tag name twice. There's a function corresponding to each HTML5 element, e.g. `div()`, `h3()`, `head()`, etc. Since some tag names (e.g. `var`) are PHP keywords, the functions for those tags have underscores, like this: `var_()`. This applies to `dl_, header_, link_, and time_`.

```
$webPage->addToBody(
	div( 'class=row id=mainRow',
		div( 'class=column',
			p( 'attributes go here',
				'content goes here'
			)
			. ul(
				li( '', 'item 1' )   // don't forget the '' even if there are no properties!
				. li( '', item 2' )
				. li( '', 'item 3' )
			)
			. a( 'href="http://www.example.com"', 'Click Here' )
		)
	)
);

```

renders as:

```

			content

			item 1
			item 2
			item 3

		Click Here

```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 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

2260d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/34ccb5550002ef3ce7d8726fc29aa7bf2b5cf6bc6a0c2e9f3827351016c2ca29?d=identicon)[neroxiv](/maintainers/neroxiv)

---

Top Contributors

[![mpb-cal](https://avatars.githubusercontent.com/u/15842980?v=4)](https://github.com/mpb-cal "mpb-cal (28 commits)")

### Embed Badge

![Health badge](/badges/mpb-cal-web-sight/health.svg)

```
[![Health](https://phpackages.com/badges/mpb-cal-web-sight/health.svg)](https://phpackages.com/packages/mpb-cal-web-sight)
```

###  Alternatives

[laravel/passport

Laravel Passport provides OAuth2 server support to Laravel.

3.4k85.0M532](/packages/laravel-passport)[nolimits4web/swiper

Most modern mobile touch slider and framework with hardware accelerated transitions

41.8k177.2k1](/packages/nolimits4web-swiper)[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k36.7M259](/packages/laravel-dusk)[laravel/prompts

Add beautiful and user-friendly forms to your command-line applications.

712181.8M596](/packages/laravel-prompts)[cakephp/chronos

A simple API extension for DateTime.

1.4k47.7M121](/packages/cakephp-chronos)[laravel/pail

Easily delve into your Laravel application's log files directly from the command line.

91545.3M590](/packages/laravel-pail)

PHPackages © 2026

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