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

ActiveLibrary

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 1mo ago

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 82% 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

3589d 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://www.gravatar.com/avatar/da08b648cd13384576d0d3dab86731b8b7c0b09248030932cc731625fd4d7182?d=identicon)[david-garcia-garcia](/maintainers/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

[felixfbecker/language-server-protocol

PHP classes for the Language Server Protocol

22476.7M6](/packages/felixfbecker-language-server-protocol)[felixfbecker/language-server

PHP Implementation of the Visual Studio Code Language Server Protocol

1.2k95.4k](/packages/felixfbecker-language-server)[potsky/microsoft-translator-php-sdk

PHP SDK for Microsoft Translator

18120.2k1](/packages/potsky-microsoft-translator-php-sdk)[lovattj/php-skydrive

A PHP client library for Microsoft SkyDrive/OneDrive

3923.1k](/packages/lovattj-php-skydrive)[hafael/azure-mailer-driver

Supercharge your Laravel or Symfony app with Microsoft Azure Communication Services (ACS)! Effortlessly add email, chat, voice, video, and telephony-over-IP for next-level communication. 🚀

14109.2k](/packages/hafael-azure-mailer-driver)[skrepr/teams-connector

A simple PHP package for sending messages to Microsoft Teams

239.6k1](/packages/skrepr-teams-connector)

PHPackages © 2026

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