Ice framework

另一个作为c扩展的、简单和快速的PHP开发框架。(Simple and fast PHP framework delivered as C-extension.)

  • 所有者: ice/framework
  • 平台:
  • 许可证: BSD 3-Clause "New" or "Revised" License
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

另一个作为c扩展的、简单和快速的PHP开发框架。你不需要学习或使用C语言,因为其功能作为PHP类即时可用。

在官方的测试中,ice-1.1的每秒处理请求数、峰值内存使用量等指标略超或近似于 Phalcon。当然,这种测试是见仁见智的。这个测试的脚本采用了 PHP Framework Benchmark,该项目的目的是试图测量现实世界中PHP框架的最小开销(最小引导开销),测试范围不包括模板引擎或ORM/数据库。测试环境:没有特殊的设置/优化来提高一些框架的性能,没有缓存!详情可参考官网:https://www.iceframework.org/doc/introduction/benc...或者 PHP Framework Benchmark。有兴趣的可在下载 PHP Framework Benchmark 源码,在开发或产品环境进行测试。

主要指标

概览
名称与所有者ice/framework
主编程语言C
编程语言Shell (语言数: 5)
平台
许可证BSD 3-Clause "New" or "Revised" License
所有者活动
创建于2014-11-07 12:29:15
推送于2025-01-26 15:52:04
最后一次提交
发布数37
最新版本名称1.11.0 (发布于 2025-01-26 16:51:17)
第一版名称1.0.0 (发布于 )
用户参与
星数340
关注者数23
派生数42
提交数1.1k
已启用问题?
问题数88
打开的问题数9
拉请求数203
打开的拉请求数2
关闭的拉请求数24
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?

Ice framework

Simple and fast PHP framework delivered as C-extension.

Latest Stable Version Total Downloads Latest Unstable Version License

Stage

Build Status

How to contribute?
  1. Fork the ice/framework repository.
  2. Create a new branch for each feature or improvement.
  3. Send a pull request from each feature branch to the dev branch*.

*please do not send files from build/ directory (they are generated automatically), just those from the ice/.

Benchmark

RPS

Installation

Ice is a C-extension, so you need to download a binary for your platform or compile it from source code.

Download

Compilation*

  • Compile on Linux/Unix/Mac. There are two ways to compile Ice framework from sources:
  • compile from build/ directory and C-files - recommended for beginners and for production machines; C-files are generated by Ice Team after merge and tests pass
  • build by zephir (generate, compile and install extension) - recommended for developers and for testing next release; by this way you generate C-files from Zep-files, so you can get newest features/fixes but it could be unstable; after generate by zephir the files will be located in the ext/ directory
  • build on Windows

*before compilation please read the Requirements.


Compile from build/:

Clone and install from GitHub:

git clone --depth=1 https://github.com/ice/framework.git
cd framework/
./install
or install using composer:
composer create-project iceframework/framework --no-dev
Add extension to your php.ini:
extension=ice.so

Finally restart the webserver


Build by zephir* (generate, compile and install extension):

By default ./vendor/bin/zephir runs zephir. To build Ice you must run zephir begin in the framework/ directory:
cd framework/
./vendor/bin/zephir build

*if you don't have zephir you need to compile zephir, but first you have to install zephir-parser.

Compile zephir
You can install zephir using composer. If you already have ice and you are inside framework/ directory:
composer update
or clone zephir repo:
mkdir vendor/phalcon/ && cd $_
git clone https://github.com/phalcon/zephir.git

# Install zephir
./install

# Create symbolic link
mkdir ../../bin && cd $_
ln -s ../phalcon/zephir/bin/zephir
Run zephir first time:
cd framework/
./vendor/bin/zephir

Requirements

You can build from C-files or build by zephir

To build the PHP extension:
  • gcc >= 4.4/clang++ >= 3.x/vc++ 11
  • gnu make >= 3.81/Windows nmake
  • php development headers and tools
To compile zephir-parser
  • re2c

Ubuntu:

sudo apt-get install php7-dev libpcre3-dev gcc make re2c

Suse:

sudo zypper install php7-devel pcre-devel gcc make re2c

CentOS/Fedora/RHEL

sudo yum install php-devel pcre-devel gcc make re2c

Windows
Zephir Installation

License

Ice is open-sourced software licensed under the New BSD License. See the LICENSE file for more information.


Copyright (c) 2014-2018 Ice Team.