PHPackages                             crowdstar/svn-agent-host - 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. crowdstar/svn-agent-host

AbandonedArchivedLibrary

crowdstar/svn-agent-host
========================

A native messaging host to handle SVN commands received from specific Chrome extension.

1.0.15(6y ago)0274Apache-2.0PHPPHP &gt;=7.0CI failing

Since May 29Pushed 1y ago1 watchersCompare

[ Source](https://github.com/Crowdstar/svn-agent-host)[ Packagist](https://packagist.org/packages/crowdstar/svn-agent-host)[ Docs](https://www.glu.com)[ RSS](/packages/crowdstar-svn-agent-host/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (10)Dependencies (8)Versions (22)Used By (0)

[![Build Status](https://camo.githubusercontent.com/8117b1e5b5a2d907e72269dd4b37884f6dc9239ed0932aa8d07b8d446fca0ae4/68747470733a2f2f7472617669732d63692e6f72672f43726f7764737461722f73766e2d6167656e742d686f73742e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/Crowdstar/svn-agent-host)[![AppVeyor Build Status](https://camo.githubusercontent.com/9e74a8556488796f4e63707618067eac9bf6e53bbe95b3918afe7d445294d3fd/68747470733a2f2f63692e6170707665796f722e636f6d2f6170692f70726f6a656374732f7374617475732f6764346739766b7363386d37653465703f7376673d74727565)](https://ci.appveyor.com/project/deminy/svn-agent-host)[![Latest Stable Version](https://camo.githubusercontent.com/9a94eecc2893d8d6b0dc6de2499effa0ea2d0b56c5f2de931d2d3c4df00a324f/68747470733a2f2f706f7365722e707567782e6f72672f43726f7764737461722f73766e2d6167656e742d686f73742f762f737461626c652e737667)](https://packagist.org/packages/crowdstar/svn-agent-host)[![Latest Unstable Version](https://camo.githubusercontent.com/1934079a9ec0179c3c7695f48f29b447971baac4ddcecfaf3f1ed1e61240f52f/68747470733a2f2f706f7365722e707567782e6f72672f43726f7764737461722f73766e2d6167656e742d686f73742f762f756e737461626c652e737667)](https://packagist.org/packages/crowdstar/svn-agent-host)[![License](https://camo.githubusercontent.com/225bbdd76afe7590f9203f99a83a599e8ed67c8dfe9668a7b62d977d79569cfa/68747470733a2f2f706f7365722e707567782e6f72672f43726f7764737461722f73766e2d6167656e742d686f73742f6c6963656e7365)](https://packagist.org/packages/crowdstar/svn-agent-host)

A native messaging host to handle SVN commands received from specific Chrome extension.

The host program is built for Mac and Linux. For Windows users, you may have the host program installed in Ubuntu or some other Linux distribution through the *Windows Subsystem for Linux*.

This repository was for an internal project at [Glu Mobile](https://www.glu.com). We make part of the whole project open source to share our experience on

- writing [native messaging host](https://developer.chrome.com/apps/nativeMessaging#native-messaging-host) in PHP.
- wrapping Subversion operations in PHP without using [the Subversion extension](http://php.net/manual/en/book.svn.php).

Run Tests
=========

[](#run-tests)

We use *Docker* to setup our test environments. You may run unit tests, coding style checks, and other tests on different versions of PHP and Subversion installations (prepared with *Docker*) using following commands:

```
PHP_VERSION=7.0    SVN_VERSION=1.8.19 ./bin/ci-on-linux.sh
PHP_VERSION=7.1    SVN_VERSION=1.9.9  ./bin/ci-on-linux.sh
PHP_VERSION=7.2    SVN_VERSION=1.10.3 ./bin/ci-on-linux.sh
PHP_VERSION=7.3    SVN_VERSION=1.11.0 ./bin/ci-on-linux.sh
PHP_VERSION=7.4    SVN_VERSION=1.13.0 ./bin/ci-on-linux.sh
# or, more specifically:
PHP_VERSION=7.1.19 SVN_VERSION=1.10.0 ./bin/ci-on-linux.sh
```

To run unit tests with current PHP and Subversion installation on your box, just execute following commands directly:

```
./bin/ci-on-osx.sh
```

Demo Code
=========

[](#demo-code)

Following demo code shows how to communicate with the native message host from a Chrome extension.

```
// content.js: a Content Script file.
window.addEventListener(
    "message",
    function (event) {
        chrome.runtime.sendMessage(
            event.data,
            function (response) {
                console.log('response from the background script', response);
            }
        );
    },
    false
);
window.postMessage({action: "create", data: {"path": "path/1"}}, "*");

// background.js: a Background Script file.
chrome.runtime.onMessage.addListener(
    function (request, sender, sendResponse) {
        chrome.runtime.sendNativeMessage(
            'com.glu.crowdstar.svnagent', // name of the native messaging host.
            request,
            function (response) {
                console.log("response from the native messaging host: ", response);
                // sendResponse(response);
            }
        );

        return true;
    }
);
```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance27

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity67

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 ~39 days

Recently: every ~122 days

Total

21

Last Release

2107d ago

Major Versions

0.0.4 → 1.0.02018-06-15

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/865547?v=4)[Demin Yin](/maintainers/deminy)[@deminy](https://github.com/deminy)

---

Top Contributors

[![deminy](https://avatars.githubusercontent.com/u/865547?v=4)](https://github.com/deminy "deminy (165 commits)")

---

Tags

chromenative-messagingnative-messaging-hostphp

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/crowdstar-svn-agent-host/health.svg)

```
[![Health](https://phpackages.com/badges/crowdstar-svn-agent-host/health.svg)](https://phpackages.com/packages/crowdstar-svn-agent-host)
```

###  Alternatives

[laravel/framework

The Laravel Framework.

34.6k509.9M16.9k](/packages/laravel-framework)[tempest/framework

The PHP framework that gets out of your way.

2.1k23.1k9](/packages/tempest-framework)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)[pressbooks/pressbooks

Pressbooks is an open source book publishing tool built on a WordPress multisite platform. Pressbooks outputs books in multiple formats, including PDF, EPUB, web, and a variety of XML flavours, using a theming/templating system, driven by CSS.

44643.1k1](/packages/pressbooks-pressbooks)[doppar/framework

The Doppar Framework

366.7k8](/packages/doppar-framework)[forme/framework

An MVC framework for WordPress.

175.0k3](/packages/forme-framework)

PHPackages © 2026

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