PHPackages                             covaleski/intraphp - 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. covaleski/intraphp

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

covaleski/intraphp
==================

Experimental PHP desktop emulation library.

v0.1.0(1y ago)011Apache-2.0PHP

Since Aug 4Pushed 1y ago1 watchersCompare

[ Source](https://github.com/covaleski/intraphp)[ Packagist](https://packagist.org/packages/covaleski/intraphp)[ RSS](/packages/covaleski-intraphp/feed)WikiDiscussions main Synced 1mo ago

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

IntraPHP
========

[](#intraphp)

Experimental PHP desktop emulation library.

For now, this is a simple library that runs local PHP projects like desktop apps. It uses Chromium and aims to produce results similar to what Electron does with JavaScript.

Read [Security](#security) and use it for development purposes only. Plans are to improve performance and security in the future.

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

[](#installation)

Require the library using Composer.

```
composer require covaleski/intraphp
```

Usage
-----

[](#usage)

### Check requirements

[](#check-requirements)

You must have Chromium and PHP installed in your system. Check platform requirements using:

```
./vendor/bin/intraphp-reqs
```

If something is flagged as "not found", install it, add a installed package to your PATH or change the library executable using [environment variables](#environment).

### Simplest setup

[](#simplest-setup)

Just add your `index.php` file to your project root directory and run the command:

```
./vendor/bin/intraphp
```

See below if you want to set a different public directory and other parameters.

### Custom setups

[](#custom-setups)

You can set a custom public directory and [other settings](#environment) using a bootstrap file.

Create a file named `boostrap.php` in your project root directory and add the code you want to run before starting your application.

```
// bootstrap.php
putenv('APP_DOCROOT=' . __DIR__ . '/public');
putenv('PHP_EXECUTABLE=php8.1');
```

The example above sets the folder `public` as the public directory and tells the library to use `php8.1` to setup the server.

Run the `intraphp` command to start your application.

```
./vendor/bin/intraphp
```

### Test configuration

[](#test-configuration)

To see the result of your configuration without running your application, use:

```
./vendor/bin/intraphp-vars
```

Environment
-----------

[](#environment)

The library uses the following environment variables to setup the application:

VariableDescriptionDefault valueAPP\_BOOTSTRAPBootstrap script location.Project root `boostrap.php`.APP\_DOCROOTDirectory containing your `index.php`.Project root.APP\_HOMEPAGEWeb application initial path.`/`APP\_SERVER\_HOSTApplication host name.`localhost`APP\_SERVER\_PORTPort to serve the application.`8888`APP\_SERVER\_PROTOCOLProtocol to use in URLs.`http`CHROMIUM\_EXECUTABLEChromium executable.`chromium`PHP\_EXECUTABLEPHP executable.`php`Security
--------

[](#security)

This library is a simple experiment and has critical security weaknesses for now:

- PHP's built-in server is used - [it is not suited for production](https://www.php.net/manual/en/features.commandline.webserver.php);
- The host `localhost` is accessible by any application in your computer;
- No encryption is used and the default protocol is `http:`, not `https:`;
- No additional INI directives are set;
- No additional Chromium flags are set;
- Your home is accessible by the application as it is not sandboxed.

There are plans to make it suitable for production by replacing `localhost` by Unix domain sockets, using file permissions and encryption for protection, setting INI directives and other measures.

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance32

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity30

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

697d ago

### Community

Maintainers

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

---

Top Contributors

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

###  Code Quality

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/covaleski-intraphp/health.svg)

```
[![Health](https://phpackages.com/badges/covaleski-intraphp/health.svg)](https://phpackages.com/packages/covaleski-intraphp)
```

###  Alternatives

[friendsofphp/php-cs-fixer

A tool to automatically fix PHP code style

13.5k251.2M25.2k](/packages/friendsofphp-php-cs-fixer)[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.7k38.9k](/packages/matomo-matomo)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

751291.4k43](/packages/civicrm-civicrm-core)[spatie/laravel-export

Create a static site bundle from a Laravel app

674146.0k6](/packages/spatie-laravel-export)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[phpactor/phpactor

PHP refactoring and intellisense tool for text editors

1.9k17.1k1](/packages/phpactor-phpactor)

PHPackages © 2026

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