PHPackages                             toolkit/web-utils - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. toolkit/web-utils

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

toolkit/web-utils
=================

a simple web tool library of the php

v1.0.6(7y ago)232MITPHPPHP &gt;=7.0.0

Since Feb 8Pushed 7y ago1 watchersCompare

[ Source](https://github.com/php-toolkit/web-utils)[ Packagist](https://packagist.org/packages/toolkit/web-utils)[ Docs](https://github.com/php-toolkit/web-utils)[ RSS](/packages/toolkit-web-utils/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (1)Dependencies (1)Versions (8)Used By (0)

php web tools
=============

[](#php-web-tools)

- a simple php view renderer, front assets load manage
- url,html,curl helper class

Usage
-----

[](#usage)

### View renderer

[](#view-renderer)

- support layout, data render
- support simple assets manage and load
- support include other file in a view file

```
$renderer = new \Toolkit\Web\ViewRenderer([
    'viewsPath' => __DIR__ . '/views',
    'layout' => 'my-layout.php',
]);

echo $renderer->render('home/index', ['name' => 'inhere']);
```

- setting page attrs and add assets

```
// before call render()
$renderer
    // page info
    ->setPageTitle($title)
    ->setPageMeta($keywords, $description)
    // assets
    ->addTopCssFile('/assets/libs/highlight/styles/default.css')
    ->addBottomJsFile([
        '/assets/libs/highlight/highlight.pack.js',
        '/assets/libs/markdown-it/markdown-it.min.js',
        '/assets/src/article/view.js'
    ]);
```

- in view template file.

```
/**
 * @var \Toolkit\Web\ViewRenderer $this
 */

    {__CONTENT__}

      sadebar .... my name is:

```

### Flash Messages

[](#flash-messages)

```
$flash = new Flash();

// a page
$flash->warning('page-msg', 'Please login to operate!');

// an other page
$msg = $flash->get('page-msg');
```

license
-------

[](#license)

**[MIT](LICENSE)**

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity63

Established project with proven stability

 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

Every ~41 days

Total

7

Last Release

2815d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d23e1decaf354e8f36a7ad61128865dc78dd63336c2d023d79aa3ff8ba2a05ff?d=identicon)[inhere](/maintainers/inhere)

---

Top Contributors

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

---

Tags

flash-messagesview-rendererlibraryview-renderer

### Embed Badge

![Health badge](/badges/toolkit-web-utils/health.svg)

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

###  Alternatives

[league/iso3166

ISO 3166-1 PHP Library

69937.6M136](/packages/league-iso3166)[dekor/php-array-table

PHP Library for printing associative arrays as text table (similar to mysql terminal console)

297.4M2](/packages/dekor-php-array-table)

PHPackages © 2026

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