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 14% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity29

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

651d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/35d4c539af573768e021fd53113a4ef76bd133b2988325f35b8ab0a82a2dbf9c?d=identicon)[covaleski](/maintainers/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

[symplify/monorepo-builder

Not only Composer tools to build a Monorepo.

5205.3M82](/packages/symplify-monorepo-builder)[spatie/typescript-transformer

This is my package typescript-transformer

3706.5M16](/packages/spatie-typescript-transformer)[civicrm/civicrm-core

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

728272.9k20](/packages/civicrm-civicrm-core)[shivas/versioning-bundle

Symfony application versioning, simple console command to manage version (with providers e.g. git tag) of your application using Semantic Versioning 2.0.0 recommendations

1121.2M1](/packages/shivas-versioning-bundle)[eclipxe/cfdiutils

PHP Common utilities for Mexican CFDI 3.2, 3.3 &amp; 4.0

141129.9k6](/packages/eclipxe-cfdiutils)[shyim/danger-php

Port of danger to PHP

8544.9k](/packages/shyim-danger-php)

PHPackages © 2026

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