定制 drupalonwindows/netphp 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

drupalonwindows/netphp

最新稳定版本:2.4

Composer 安装命令:

composer require drupalonwindows/netphp

包简介

README 文档

README

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

Sample

Download the examples project from GitHub

NetPhp Sample

[Check out the NetPhp User Guide] (http://www.drupalonwindows.com/en/blog/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();

统计信息

  • 总下载量: 17.15k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 31
  • 点击次数: 4
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 31
  • Watchers: 9
  • Forks: 6
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-04-11

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固