PHPackages                             kevinbatdorf/nativephp-fullscreen - 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. kevinbatdorf/nativephp-fullscreen

ActiveNativephp-plugin[Utility &amp; Helpers](/categories/utility)

kevinbatdorf/nativephp-fullscreen
=================================

Enter and exit fullscreen (immersive) mode for NativePHP Mobile apps

v0.1.0(1mo ago)22↑1400%MITPHPPHP ^8.2

Since Apr 14Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/KevinBatdorf/nativephp-fullscreen)[ Packagist](https://packagist.org/packages/kevinbatdorf/nativephp-fullscreen)[ RSS](/packages/kevinbatdorf-nativephp-fullscreen/feed)WikiDiscussions main Synced 1w ago

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

Fullscreen Plugin for NativePHP Mobile
======================================

[](#fullscreen-plugin-for-nativephp-mobile)

Enter and exit fullscreen (immersive) mode.

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

[](#installation)

```
composer require kevinbatdorf/nativephp-fullscreen
```

Usage
-----

[](#usage)

```
use KevinBatdorf\Fullscreen\Facades\Fullscreen;

// Enter fullscreen (hide status bar + navigation bar)
Fullscreen::enter();

// Exit fullscreen (show system bars)
Fullscreen::exit();

// Check if fullscreen mode is active
$active = Fullscreen::isActive();
```

JavaScript
----------

[](#javascript)

```
import { Fullscreen } from '@kevinbatdorf/nativephp-fullscreen';

await Fullscreen.enter();
await Fullscreen.exit();
const active = await Fullscreen.isActive();
```

Platform Behavior
-----------------

[](#platform-behavior)

- **Android**: Uses `WindowInsetsControllerCompat` with `BEHAVIOR_SHOW_TRANSIENT_BARS_BY_SWIPE`. System bars reappear briefly on edge swipe, then auto-hide. Fullscreen persists across page navigations natively.
- **iOS**: Swizzles the root UIViewController to hide the status bar and home indicator. Negates safe area insets so content extends into the notch/dynamic island. Injects CSS to zero out NativePHP's safe area variables (`--inset-*`, `--sat/sar/sab/sal`) and removes `body.nativephp-safe-area` padding. A `WKUserScript` at document start reads a `sessionStorage` flag to apply fullscreen CSS before the page renders, preventing flash-of-insets on navigation. A KVO observer on `WKWebView.isLoading` re-injects CSS after each page load. Orientation changes are handled automatically.

License
-------

[](#license)

MIT

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance89

Actively maintained with recent releases

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity36

Early-stage or recently created project

 Bus Factor1

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

56d ago

### Community

Maintainers

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

---

Top Contributors

[![KevinBatdorf](https://avatars.githubusercontent.com/u/1478421?v=4)](https://github.com/KevinBatdorf "KevinBatdorf (15 commits)")[![Copilot](https://avatars.githubusercontent.com/in/1143301?v=4)](https://github.com/Copilot "Copilot (2 commits)")

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/kevinbatdorf-nativephp-fullscreen/health.svg)

```
[![Health](https://phpackages.com/badges/kevinbatdorf-nativephp-fullscreen/health.svg)](https://phpackages.com/packages/kevinbatdorf-nativephp-fullscreen)
```

PHPackages © 2026

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