ZendAPI 的 C++ 封装库 PHP-X

码农软件 · 软件分类 · 其他开发相关 · 2019-10-17 12:59:46

软件介绍

PHP ZendAPI 的 C++ 封装库,可以用于快速开发 PHP 扩展。PHP-X 使用了完全面向对象的设计,使得 PHP 扩展开发、C++ 嵌入 PHP 变得非常简单,实现了 C++ 和 PHP 的互通。

环境依赖:

  • PHP-7.0或更高版本

  • g++-4.8或更高版本或clang++,必须支持C++11标准

  • 仅支持 Linux/MacOS/Windows 3种平台

  • 仅支持 x86-64 架构

  • cmake-3.5或更高版本

代码实例:

Array arr;
arr.append(1234);
arr.append(1234.56);
arr.append(false);
arr.append("hello world");

Variant a = 1234;
Variant b = 34563.3;
Variant c = "hello world";

php::exec("var_dump", a, b, c);
Variant d = php::exec("json_encode", arr);
cout << d.toString() << endl;

本文地址:https://www.codercto.com/soft/d/16952.html

Haskell Programming from first principles

Haskell Programming from first principles

Christopher Allen、Julie Moronuki / 2015 / USD 59.00

I am writing this book because I had a hard time learning Haskell. It doesn't have to be that way. I've spent the last couple years actively teaching Haskell online and in person. Along the way, I ......一起来看看 《Haskell Programming from first principles》 这本书的介绍吧!

URL 编码/解码
URL 编码/解码

URL 编码/解码

UNIX 时间戳转换
UNIX 时间戳转换

UNIX 时间戳转换

HEX CMYK 转换工具
HEX CMYK 转换工具

HEX CMYK 互转工具