PHPackages                             drupalonwindows/netphp - 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. drupalonwindows/netphp

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

drupalonwindows/netphp
======================

2.4(9y ago)3117.1k6[2 issues](https://github.com/david-garcia-garcia/netphp/issues)MITPHPPHP &gt;=5.5.0

Since May 1Pushed 9y ago9 watchersCompare

[ Source](https://github.com/david-garcia-garcia/netphp)[ Packagist](https://packagist.org/packages/drupalonwindows/netphp)[ RSS](/packages/drupalonwindows-netphp/feed)WikiDiscussions 2.x Synced today

READMEChangelogDependencies (1)Versions (14)Used By (0)

NetPhp
======

[](#netphp)

Using .Net code from PHP needs not to be a nightmare any more! Built upon the com\_dotnet extension this library allows you to easily integrate your .Net code into any PHP application.

- Use any .Net binaries (even without COM Visibility).
- Write code in PHP that consumes any of the .Net Framework libraries out of the box.
- Automatically generated PHP class dumps for IDE integration.
- Iterate over .Net collections directly from PHP.
- Propagation of .Net errors into native PHP exceptions that can be properly handled and examined.
- Acces native enums and static methods.
- Use class constructors with parameters.
- Debug .Net and PHP code at the same time as if it was a single application.
- Works with libraries compiled for any version of the .Net framework (including 4.0 and above)

See it in action
================

[](#see-it-in-action)

[![Sample](/example0.gif?raw=true "Sample")](/example0.gif?raw=true)

Download the examples project from GitHub

[NetPhp Sample](https://github.com/david-garcia-garcia/netphp-sample)

\[Check out the NetPhp User Guide\] ()

This code in C#:

```
string javascript = "";
Microsoft.Ajax.Utilities.Minifier m = new Microsoft.Ajax.Utilities.Minifier();
Microsoft.Ajax.Utilities.CodeSettings settings = new Microsoft.Ajax.Utilities.CodeSettings();
settings.OutputMode = Microsoft.Ajax.Utilities.OutputMode.SingleLine;
settings.PreserveFunctionNames = false;
string minified = m.MinifyJavaScript(javascript, settings);
```

Can be writen like this in PHP:

```
$minifier = netMinifier::Minifier_Constructor();
$settings = netCodeSettings::CodeSettings_Constructor();
$csssettings = \ms\Microsoft\Ajax\Utilities\netCssSettings::CssSettings_Constructor();
$settings->OutputMode(\ms\Microsoft\Ajax\Utilities\netOutputMode::SingleLine());
$settings->PreserveFunctionNames(FALSE);
$settings->QuoteObjectLiteralProperties(TRUE);
$result = $minifier->MinifyStyleSheet($css, $csssettings, $settings)->Val();
```

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity34

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity65

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

Recently: every ~28 days

Total

13

Last Release

3636d ago

Major Versions

1.1.1 → 2.02015-10-23

1.x-dev → 2.12016-04-01

PHP version history (2 changes)1.0.0PHP &gt;=5.4.0

1.1PHP &gt;=5.5.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/9599352?v=4)[David](/maintainers/david-garcia-garcia)[@david-garcia-garcia](https://github.com/david-garcia-garcia)

---

Top Contributors

[![david-garcia-garcia](https://avatars.githubusercontent.com/u/9599352?v=4)](https://github.com/david-garcia-garcia "david-garcia-garcia (61 commits)")

---

Tags

phpmicrosoftnetdotnet.Net Framework

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/drupalonwindows-netphp/health.svg)

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

###  Alternatives

[sebbmeyer/php-microsoft-teams-connector

PHP Microsoft Teams Connector

1201.1M3](/packages/sebbmeyer-php-microsoft-teams-connector)[imanghafoori/laravel-anypass

A minimal yet powerful package to help you in development.

21623.4k](/packages/imanghafoori-laravel-anypass)

PHPackages © 2026

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