iceframework/zephir-parser
Composer 安装命令:
composer require iceframework/zephir-parser
包简介
The Zephir Parser delivered as a C extension for the PHP language.
关键字:
README 文档
README
The Zephir Parser delivered as a C extension for the PHP language.
Supported PHP versions: 7.0, 7.1, 7.2, 7.3, 7.4, 8.0, 8.1 and 8.2
NOTE: The development
branch will always contain the latest unstable version. If you wish to
check older versions or formal, tagged release, please switch to the
relevant branch/tag.
Get Started
Build Requirements
Prerequisite packages are:
- OS: Linux || Solaris || FreeBSD || macOS || Windows
- Compiler:
g++>= 4.4 ||clang++>= 3.x ||vc++>= 11 re2c>= 0.13.6
To build extension from the source you will need the PHP development headers. If PHP was manually installed, these should be available by default. Otherwise, you will need to fetch them from a repository.
PECL
pecl install zephir_parser
Windows
To install Zephir Parser on Windows:
- Download Zephir Parser for Windows
- Extract the DLL file and copy it to your PHP extensions directory
- Edit your
php.inifile and add this line:[Zephir Parser] extension=php_zephir_parser.dll
Linux
On a Linux/Unix-based platform you can easily compile and install the extension from sources.
For Linux/Unix-based based systems you'll need also:
Ubuntu
sudo apt-get install php7.0-dev gcc make re2c autoconf automake
Suse
sudo zypper install php7.0-devel gcc make re2c autoconf automake
CentOS/Fedora/RHEL
sudo yum install php-devel gcc make re2c autoconf automake
General Compilation
Follow these instructions to generate a binary extension for your platform:
git clone git://github.com/zephir-lang/php-zephir-parser.git
cd php-zephir-parser
phpize
./configure
make
sudo make install
If you have multiple/specific PHP versions installed, you may be able to specify for which installation you'd like to
build by using the --with-php-config option during configuration. For example:
git clone git://github.com/zephir-lang/php-zephir-parser.git
cd php-zephir-parser
/usr/local/bin/phpize
./configure --with-php-config=/usr/local/bin/php-config
make
sudo make install
Add the extension to your php.ini:
[Zephir Parser] extension=zephir_parser.so
Usage
$program = <<<EOF namespace Acme; class Greeting { public static function sayHello() -> void { echo "Hello, World!"; } } EOF; $retval = zephir_parse_file($program, '(eval code)'); var_dump($retval);
Sponsors
Become a sponsor and get your logo on our README on Github with a link to your site. [Become a sponsor]
Backers
Support us with a monthly donation and help us continue our activities. [Become a backer]
License
Zephir Parser is open source software licensed under the MIT License (MIT). See the LICENSE file for more information.
iceframework/zephir-parser 适用场景与选型建议
iceframework/zephir-parser 是一款 基于 C 开发的 Composer 扩展包,目前已累计 2.44k 次下载、GitHub Stars 达 1, 最近一次更新时间为 2018 年 09 月 07 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「php」 「extension」 「zephir」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 iceframework/zephir-parser 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 iceframework/zephir-parser 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 iceframework/zephir-parser 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Zephir is a compiled high level language aimed to the creation of C-extensions for PHP
A custom URL rule class for Yii 2 which allows to create translated URL rules
The Yii2 extension uses jQuery jquery.carousel-1.1.min.js and makes image carousel from php array of structure defined.
TYPO3 CMS extension to create gallery content element with preset crop ratios and pagination
UI Kit 3 Extension for Yii2
Adds more BBCode
统计信息
- 总下载量: 2.44k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 20
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-09-07