Simple and fast PHP framework delivered as C-extension.
- Fork the ice/framework repository.
- Create a new branch for each feature or improvement.
- 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/.
Ice is a C-extension, so you need to download a binary for your platform or compile it from source code.
- openSUSE package: php5-ice, php7-ice
- Windows: DLLs
- source code of stable releases
- 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.
Clone and install from GitHub:
git clone --depth=1 https://github.com/ice/framework.git
cd framework/
./installor install using composer:
composer create-project iceframework/framework --no-devextension=ice.soFinally restart the webserver
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.
You can install zephir using composer. If you already have ice and you are inside framework/ directory:
composer updatemkdir 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/zephircd framework/
./vendor/bin/zephirYou can build from C-files or build by zephir
- gcc >= 4.4/clang++ >= 3.x/vc++ 11
- gnu make >= 3.81/Windows nmake
- php development headers and tools
- re2c
Ubuntu:
sudo apt-get install php5-dev libpcre3-dev gcc make re2cSuse:
sudo zypper install php5-devel pcre-devel gcc make re2cCentOS/Fedora/RHEL
sudo yum install php-devel pcre-devel gcc make re2cWindows
Zephir Installation
Ice is open-sourced software licensed under the New BSD License. See the LICENSE file for more information.
Copyright (c) 2014-2015 Ice Team.
