PHPackages                             carloswph/winbox-php - 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. carloswph/winbox-php

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

carloswph/winbox-php
====================

Winbox.js wrapper in PHP.

1.0.0(5y ago)916MITPHP

Since May 9Pushed 5y ago2 watchersCompare

[ Source](https://github.com/carloswph/winbox-php)[ Packagist](https://packagist.org/packages/carloswph/winbox-php)[ RSS](/packages/carloswph-winbox-php/feed)WikiDiscussions main Synced today

READMEChangelog (1)DependenciesVersions (2)Used By (0)

Winbox PHP
==========

[](#winbox-php)

A wrapper for using Winbox.js just coding in PHP. Based on:

 [![WinBox.js: HTML5 Window Manager for the Web.](https://camo.githubusercontent.com/1cb78dab5cc68596531147ae24fddc488e070d1721928566de2e0ffe23b84bb3/68747470733a2f2f63646e2e6a7364656c6976722e6e65742f67682f6e657874617070732d64652f77696e626f78406d61737465722f64656d6f2f77696e626f782e706e67)](https://camo.githubusercontent.com/1cb78dab5cc68596531147ae24fddc488e070d1721928566de2e0ffe23b84bb3/68747470733a2f2f63646e2e6a7364656c6976722e6e65742f67682f6e657874617070732d64652f77696e626f78406d61737465722f64656d6f2f77696e626f782e706e67)
==================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#----)

JS Repo -

Installation
============

[](#installation)

Clone the repo or use Composer `composer require carloswph/winbox-php`

Usage
=====

[](#usage)

Using this wrapper is actually pretty simple and can be done by just using two different classes. The class Init() provides a static method that adds Winbox.js bundle, allowing new windows to be created. Once the bundle is running, new windows can be added by instances of the class Window(), and respective window name as arguments, and its options.

The options can be either set by a number of different methods or passed while creating the instance as an array. When using the Init::enqueue() static method, a boolean can be passed optionally. If true, Winbox PHP will actually enqueue the Winbox bundle from a local repository, rather than the CDN link.

```
require __DIR__ . '/vendor/autoload.php';

?>

```

Methods
-------

[](#methods)

`setBorder($thickness)` - accepts integer or strings, corresponding to any CSS unit (px, for instance)

`setColor($color` - admits any valid CSS color and determines the window's border background

`setViewport($viewport)` - admits a single integer or string, or an array of measure (2, 3 or 4 values), corresponding to top, bottom, right and left viewport sizes

`setPosition($x, $y)` - each of the axis variables can be a single value, or an array of two values or strings (\[x, width\] and \[y, height\])

`isModal()` - if called, the winbox behaves as a modal box

`setInner($html)` - sets any HTML code to appear inside the winbox

`setID($ID)` - sets the winbox ID

`setClass($class)` - sets the winbox CSS class

`render()` - renders the winbox final result

To-do
=====

[](#to-do)

- Add custom behaviours to the windows, through the trait On(), as well as allowing a programatic control of the windows features.
- Create an additional class to set custom CSS, icons and scrollbars to be configured.

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 80% 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

1880d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/78516217?v=4)[Carlos Artur Curvelo da Silva Matos](/maintainers/carloswph)[@carloswph](https://github.com/carloswph)

---

Top Contributors

[![meuppt](https://avatars.githubusercontent.com/u/37983141?v=4)](https://github.com/meuppt "meuppt (8 commits)")[![carloswph](https://avatars.githubusercontent.com/u/78516217?v=4)](https://github.com/carloswph "carloswph (2 commits)")

---

Tags

boxescss3elementsjsmodalsphp

### Embed Badge

![Health badge](/badges/carloswph-winbox-php/health.svg)

```
[![Health](https://phpackages.com/badges/carloswph-winbox-php/health.svg)](https://phpackages.com/packages/carloswph-winbox-php)
```

PHPackages © 2026

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